Documentation ¶
Index ¶
- Constants
- type Fall
- type IdentityProvider
- func (idp *IdentityProvider) MetaDataResponse() (string, error)
- func (idp *IdentityProvider) NewSignedLoginResponse() (string, error)
- func (idp *IdentityProvider) NewSignedLogoutResponse() (string, error)
- func (idp *IdentityProvider) ParseLoginRequest(method string, query url.Values, payload url.Values, httpBinding string) *Fall
- func (idp *IdentityProvider) ParseLogoutRequest(method string, query url.Values, payload url.Values, httpBinding string) *Fall
- func (idp *IdentityProvider) ResponseHtml(signedXML string, requestType string) (string, error)
- type MetadataBinding
- type SamlRequestParam
Constants ¶
View Source
const HTTPPostBinding = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
HTTPPostBinding is the official URN for the HTTP-POST binding (transport)
View Source
const HTTPRedirectBinding = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
HTTPRedirectBinding is the official URN for the HTTP-Redirect binding (transport)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityProvider ¶
type IdentityProvider struct { IsIdpInitiated bool Issuer string Audiences []string IDPCert string IDPKey string SPCert string Attributes []map[string]string SignatureAlgorithm string SignaturePrefix string DigestAlgorithm string LifetimeInSeconds int64 NameIdentifier string NameIdentifierFormat string ACSLocation string ACSBinging string LogoutUrl string RelayState string SessionIndex string SingleSignOnService []MetadataBinding SingleSignOutService []MetadataBinding // contains filtered or unexported fields }
func (*IdentityProvider) MetaDataResponse ¶
func (idp *IdentityProvider) MetaDataResponse() (string, error)
func (*IdentityProvider) NewSignedLoginResponse ¶
func (idp *IdentityProvider) NewSignedLoginResponse() (string, error)
func (*IdentityProvider) NewSignedLogoutResponse ¶
func (idp *IdentityProvider) NewSignedLogoutResponse() (string, error)
func (*IdentityProvider) ParseLoginRequest ¶
func (*IdentityProvider) ParseLogoutRequest ¶
func (*IdentityProvider) ResponseHtml ¶
func (idp *IdentityProvider) ResponseHtml(signedXML string, requestType string) (string, error)
type MetadataBinding ¶
type SamlRequestParam ¶
type SamlRequestParam struct { Method string RequestBuffer []byte SAMLRequest string RelayState string SigAlg string Signature string AuthnRequest *lib.AuthnRequest LogoutRequest *lib.LogoutRequest }
func (*SamlRequestParam) CheckSignature ¶
func (s *SamlRequestParam) CheckSignature(idp *IdentityProvider) error
func (*SamlRequestParam) GetOctetString ¶
func (sqp *SamlRequestParam) GetOctetString() string
func (*SamlRequestParam) ParseAuthnRequest ¶
func (sqp *SamlRequestParam) ParseAuthnRequest() error
func (*SamlRequestParam) ParseLogoutRequest ¶
func (sqp *SamlRequestParam) ParseLogoutRequest() error
Click to show internal directories.
Click to hide internal directories.