class
Saml::Logoutresponse
- Saml::Logoutresponse
- Saml::SamlMessage
- Reference
- Object
Overview
SAML2 Logout Response (SLO SP initiated, Parser)
The signature is only checked when :get_params carry a Signature (the HTTP-Redirect binding), as in ruby-saml.
Included Modules
Defined in:
saml/logoutresponse.crConstructors
-
.new(response : String | Nil, settings : Settings | Nil = nil, options : Hash = {} of Symbol => RedirectSignature::OptionValue)
@param response [String] A base64 encoded (and maybe deflated) logout response from the IdP.
Instance Method Summary
- #document : XMLSecurity::SignedDocument
-
#in_response_to : String | Nil
@return [String|nil] Gets the InResponseTo attribute from the Logout Response if exists.
-
#issuer : String | Nil
@return [String] Gets the Issuer from the Logout Response.
- #options : Hash(Symbol, RedirectSignature::OptionValue)
- #response : String
- #response_id : String | Nil
- #settings : Settings | Nil
- #settings=(settings : Settings | Nil)
- #soft : Bool
- #soft=(soft : Bool)
-
#status_code : String | Nil
@return [String] Gets the StatusCode from a Logout Response.
- #status_message : String | Nil
-
#success? : Bool
Checks if the Status has the "Success" code
-
#validate(collect_errors = false) : Bool
Validates the Logout Response @raise [ValidationError] if soft == false and validation fails
Instance methods inherited from module Saml::ErrorHandling
append_error(error_msg : String, soft_override : Bool | Nil = nil) : Bool
append_error,
errors : Array(String)
errors,
reset_errors!
reset_errors!
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
@param response [String] A base64 encoded (and maybe deflated) logout response from the IdP. @param settings [Settings|nil] Toolkit settings @param options [Hash] :matches_request_id, :get_params / :raw_get_params, :relax_signature_validation @raise [ArgumentError] if response is nil
Instance Method Detail
@return [String|nil] Gets the InResponseTo attribute from the Logout Response if exists.
Validates the Logout Response @raise [ValidationError] if soft == false and validation fails