Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IdpLogoutRequest ¶
type IdpLogoutRequest struct { HTTPRequest *http.Request Binding string RequestBuffer []byte Request *saml.LogoutRequest Now time.Time RelayState string SigAlg *string Signature []byte }
IdpLogoutRequest is used by IdentityProvider to handle a single logout request.
func NewIdpLogoutRequest ¶
func NewIdpLogoutRequest(r *http.Request) (*IdpLogoutRequest, error)
func (*IdpLogoutRequest) Validate ¶
func (req *IdpLogoutRequest) Validate() error
Validate checks that the authentication request is valid and assigns the LogoutRequest and Metadata properties. Returns a non-nil error if the request is not valid.
func (*IdpLogoutRequest) VerifySignature ¶
func (req *IdpLogoutRequest) VerifySignature(pubKey crypto.PublicKey) error
VerifySignature verifies the associated IdpLogoutRequest data with the associated Signature using the provided public key.
type IdpLogoutResponse ¶
type IdpLogoutResponse struct { HTTPRequest *http.Request Binding string ResponseBuffer []byte Response *saml.LogoutResponse Now time.Time RelayState string SigAlg *string Signature []byte }
IdpLogoutResponse is used by IdentityProvider to handle a single logout response callbacks.
func NewIdpLogoutResponse ¶
func NewIdpLogoutResponse(r *http.Request) (*IdpLogoutResponse, error)
func (*IdpLogoutResponse) Validate ¶
func (res *IdpLogoutResponse) Validate() error
Validate checks that the associated response is valid and assigns the LogoutResponse and Metadata properties. Returns a non-nil error if the request is not valid.
func (*IdpLogoutResponse) VerifySignature ¶
func (res *IdpLogoutResponse) VerifySignature(pubKey crypto.PublicKey) error
VerifySignature verifies the associated IdpLogoutResponse data with the associated Signature using the provided public key.
type LogoutRequest ¶
type LogoutRequest struct {
*saml.LogoutRequest
}
type LogoutResponse ¶
type LogoutResponse struct {
*saml.LogoutResponse
}
func MakeLogoutResponse ¶
func MakeLogoutResponse(sp *saml.ServiceProvider, req *saml.LogoutRequest, status *saml.Status, binding string) (*LogoutResponse, error)