separate eap logic into protocol
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -9,6 +9,7 @@ import (
|
||||
type context struct {
|
||||
req *radius.Request
|
||||
state interface{}
|
||||
typeState map[protocol.Type]any
|
||||
log *log.Entry
|
||||
settings interface{}
|
||||
endStatus protocol.Status
|
||||
@ -23,6 +24,10 @@ func (ctx context) ProtocolSettings() interface{} {
|
||||
return ctx.settings
|
||||
}
|
||||
|
||||
func (ctx *context) StateForProtocol(p protocol.Type) interface{} {
|
||||
return ctx.typeState[p]
|
||||
}
|
||||
|
||||
func (ctx *context) GetProtocolState() interface{} {
|
||||
return ctx.state
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user