validators

package
v9.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package validators implements credential validation handlers for the RADIUS authentication pipeline.

Validators process protocol-specific credential formats, including PAP, CHAP, and MS-CHAP variants, and return normalized auth outcomes that upstream pipeline stages can map into policy checks, metrics tags, and final RADIUS responses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CHAPValidator

type CHAPValidator struct{}

CHAPValidator implements CHAP password validation

func (*CHAPValidator) CanHandle

func (v *CHAPValidator) CanHandle(authCtx *auth.AuthContext) bool

func (*CHAPValidator) Name

func (v *CHAPValidator) Name() string

func (*CHAPValidator) Validate

func (v *CHAPValidator) Validate(ctx context.Context, authCtx *auth.AuthContext, password string) error

type MSCHAPValidator

type MSCHAPValidator struct{}

MSCHAPValidator handles MSCHAP password validation (non-EAP)

func (*MSCHAPValidator) CanHandle

func (v *MSCHAPValidator) CanHandle(authCtx *auth.AuthContext) bool

func (*MSCHAPValidator) Name

func (v *MSCHAPValidator) Name() string

func (*MSCHAPValidator) Validate

func (v *MSCHAPValidator) Validate(ctx context.Context, authCtx *auth.AuthContext, password string) error

type PAPValidator

type PAPValidator struct{}

PAPValidator handles PAP password validation

func (*PAPValidator) CanHandle

func (v *PAPValidator) CanHandle(authCtx *auth.AuthContext) bool

func (*PAPValidator) Name

func (v *PAPValidator) Name() string

func (*PAPValidator) Validate

func (v *PAPValidator) Validate(ctx context.Context, authCtx *auth.AuthContext, password string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL