class
Saml::Authrequest
- Saml::Authrequest
- Saml::SamlMessage
- Reference
- Object
Overview
SAML2 Authentication. AuthNRequest (SSO SP initiated, Builder)
Defined in:
saml/authrequest.crConstructors
Instance Method Summary
-
#create(settings : Settings, params : Hash = {} of String => String | ::Nil) : String
Creates the AuthNRequest URL (the IdP SSO URL with the SAMLRequest and any extra parameters, such as RelayState, in the query).
-
#create_authentication_xml_doc(settings : Settings) : XMLSecurity::Document
Creates the SAMLRequest document (signed when the POST binding asks for it).
-
#create_params(settings : Settings, params : Hash = {} of String => String | ::Nil) : Hash(String, String)
Creates the GET parameters for the request: SAMLRequest, plus SigAlg and Signature when redirect requests are signed, plus params.
- #create_xml_document(settings : Settings) : XMLSecurity::Document
- #login_url : String | Nil
- #request_id : String
- #sign_document(document : XMLSecurity::Document, settings : Settings) : XMLSecurity::Document
-
#uuid : String
AuthNRequest ID
-
#uuid=(uuid : String)
AuthNRequest ID
Instance methods inherited from class Saml::SamlMessage
id(document) : String | Nil
id,
valid_saml?(document, soft = true, check_malformed_doc = true) : Bool
valid_saml?,
version(document) : String | Nil
version
Constructor Detail
Instance Method Detail
Creates the AuthNRequest URL (the IdP SSO URL with the SAMLRequest and any extra parameters, such as RelayState, in the query). @raise [SettingError] when idp_sso_service_url isn't set
Creates the SAMLRequest document (signed when the POST binding asks for it).
Creates the GET parameters for the request: SAMLRequest, plus SigAlg and Signature when redirect requests are signed, plus params.