folder structure to prepare eap in eap

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2025-05-20 23:44:01 +02:00
parent d6cf129eaa
commit 19bb77638a
11 changed files with 6 additions and 6 deletions

View File

@ -0,0 +1,42 @@
package peap
import (
log "github.com/sirupsen/logrus"
"goauthentik.io/internal/outpost/radius/eap/debug"
"goauthentik.io/internal/outpost/radius/eap/protocol"
"goauthentik.io/internal/outpost/radius/eap/protocol/tls"
)
const TypePEAP protocol.Type = 25
func Protocol() protocol.Payload {
return &tls.Payload{
Inner: &Payload{},
}
}
type Payload struct {
}
func (p *Payload) Type() protocol.Type {
return TypePEAP
}
func (p *Payload) Decode(raw []byte) error {
log.WithField("raw", debug.FormatBytes(raw)).Debug("PEAP: Decode")
return nil
}
func (p *Payload) Encode() ([]byte, error) {
log.Debug("PEAP: Encode")
return []byte{}, nil
}
func (p *Payload) Handle(ctx protocol.Context) protocol.Payload {
log.Debug("PEAP: Handle")
return &Payload{}
}
func (p *Payload) Offerable() bool {
return true
}