class Saml::Logoutresponse
- Saml::Logoutresponse
- Saml::SamlMessage
- Reference
- Object
Overview
SAML2 Logout Response (SLO IdP initiated, Parser)
Included Modules
Defined in:
saml/logoutresponse.crConstructors
- 
        .new(response, settings : Settings | Nil = nil, options : Hash(Symbol, String) = {} of Symbol => String)
        
          Constructs the Logout Response. 
Instance Method Summary
- #document : XMLSecurity::SignedDocument
- 
        #in_response_to
        
          @return [String|nil] Gets the InResponseTo attribute from the Logout Response if exists. 
- 
        #issuer
        
          @return [String] Gets the Issuer from the Logout Response. 
- #options : Hash(Symbol, String)
- #response
- #response_id
- 
        #settings : Saml::Settings?
        
          Saml::Settings Toolkit settings 
- 
        #settings=(settings : Nil | Saml::Settings)
        
          Saml::Settings Toolkit settings 
- #soft : Bool
- #soft=(soft : Bool)
- 
        #status_code
        
          @return [String] Gets the StatusCode from a Logout Response. 
- #status_message
- 
        #success?
        
          Checks if the Status has the "Success" code @return [Boolean] True if the StatusCode is Sucess @raise [ValidationError] if soft == false and validation fails 
- 
        #validate(collect_errors = false)
        
          Aux function to validate the Logout Response @param collect_errors [Boolean] Stop validation when first error appears or keep validating. 
Instance methods inherited from module Saml::ErrorHandling
  
  
    
      append_error(error_msg : String, soft_override : Bool | Nil = nil)
    append_error, 
    
  
    
      errors
    errors, 
    
  
    
      errors_messages
    errors_messages, 
    
  
    
      errors_messages=(errors_messages)
    errors_messages=, 
    
  
    
      reset_errors!
    reset_errors!
    
  
    
    
  
    
  Instance methods inherited from class Saml::SamlMessage
  
  
    
      id(document)
    id, 
    
  
    
      valid_saml?(document, soft = true)
    valid_saml?, 
    
  
    
      version(document)
    version
    
  
    
    
  
    
    
    
  
    
    
    
  
Constructor Detail
Constructs the Logout Response. A Logout Response Object that is an extension of the SamlMessage class. @param response [String] A UUEncoded logout response from the IdP. @param settings [::Settings|nil] Toolkit settings @param options [Hash] Extra parameters. :matches_request_id It will validate that the logout response matches the ID of the request. :get_params GET Parameters, including the SAMLResponse :relax_signature_validation to accept signatures if no idp certificate registered on settings
@raise [ArgumentError] if response is nil
Instance Method Detail
@return [String|nil] Gets the InResponseTo attribute from the Logout Response if exists.
Checks if the Status has the "Success" code @return [Boolean] True if the StatusCode is Sucess @raise [ValidationError] if soft == false and validation fails
Aux function to validate the Logout Response @param collect_errors [Boolean] Stop validation when first error appears or keep validating. (if soft=true) @return [Boolean] TRUE if the SAML Response is valid @raise [ValidationError] if soft == false and validation fails