Documentation ¶
Overview ¶
Package auth xmlsec.go is taken from: https://github.com/RobotsAndPencils/go-saml/blob/master/xmlsec.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitNullAuthService ¶ added in v1.1.0
func InitNullAuthService() error
InitNullAuthService sets the auth service to null
func InitOktaAuthService ¶
func InitOktaAuthService(config *OktaConfig) error
InitOktaAuthService creates a new instance of OktaAuthService from the given config and sets it as the default auth service
Types ¶
type Null ¶ added in v1.1.0
type Null struct{}
Null implements a the auth Service interface and always auths
func (*Null) AddHandlers ¶ added in v1.1.0
AddHandlers implements the Service interface
type OktaAuthService ¶
type OktaAuthService struct {
// contains filtered or unexported fields
}
OktaAuthService is the auth service that uses Okta to authenticate users
func (*OktaAuthService) AddHandlers ¶
func (s *OktaAuthService) AddHandlers(srv *server.Server)
AddHandlers implements the Service interface
func (*OktaAuthService) Cleanup ¶
func (s *OktaAuthService) Cleanup()
Cleanup implements the Service interface
func (*OktaAuthService) Validate ¶
func (s *OktaAuthService) Validate(r *saml.Response, originalBytes []byte) error
Validate validates the SAML response taken from https://github.com/RobotsAndPencils/go-saml/blob/master/authnresponse.go#L49
type OktaConfig ¶
OktaConfig is the configuration for the OktaAuthService