Documentation ¶
Index ¶
- func CreateSamlTestResponse(t *testing.T, conf TestResponseConfig) string
- type Service
- func (service *Service) CreateAuthenticationRequest() (string, string, error)
- func (service *Service) CreateSLORequest(username string, sessionIndex string) (string, string, error)
- func (service *Service) ResponseType(encoded string) (api.SAMLResponseType, error)
- func (service *Service) ValidateAuthenticationResponse(encoded string) (string, string, error)
- type TestResponseConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSamlTestResponse ¶
func CreateSamlTestResponse(t *testing.T, conf TestResponseConfig) string
CreateSamlTestResponse crafts a SAML response, mimicing a response from WSO2
Types ¶
type Service ¶
type Service struct { Log api.LogService Env api.Settings // contains filtered or unexported fields }
Service implements the handling of SAMl requests and responses.
func (*Service) CreateAuthenticationRequest ¶
CreateAuthenticationRequest creates a SAML 2.0 authentication request based on the service provider settings. If configured to sign the request then the Base64 XML will be signed.
func (*Service) CreateSLORequest ¶ added in v1.0.6
func (service *Service) CreateSLORequest(username string, sessionIndex string) (string, string, error)
CreateSLORequest creates an encoded SAML Logout Request suitable for sending to the identity server
func (*Service) ResponseType ¶ added in v1.0.6
func (service *Service) ResponseType(encoded string) (api.SAMLResponseType, error)
ResponseType returns an "enum" that indicates what type of response the encoded message represents
Click to show internal directories.
Click to hide internal directories.