class Saml::SloLogoutrequest

Overview

SAML2 Logout Request (SLO IdP initiated, Parser)

The signature is only checked when :get_params carry a Signature (the HTTP-Redirect binding), as in ruby-saml; an unsigned request is accepted.

Included Modules

Defined in:

saml/slo_logoutrequest.cr

Constructors

Instance Method Summary

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

def self.new(request : String | Nil, options : Hash = {} of Symbol => RedirectSignature::OptionValue) #

@param request [String] A base64 encoded (and maybe deflated) Logout Request from the IdP. @param options [Hash] :settings, :allowed_clock_drift, :get_params / :raw_get_params (to check a redirect binding signature), :relax_signature_validation @raise [ArgumentError] If Request is nil


[View source]

Instance Method Detail

def decrypt_nameid(encrypted_id_node : XML::Node) : XML::Node | Nil #

Decrypts an EncryptedID element with the SP keys.


[View source]

[View source]
def id : String | Nil #

@return [String|nil] Gets the ID attribute from the Logout Request. if exists.


[View source]
def is_valid?(collect_errors = false) : Bool #

[View source]
def issuer : String | Nil #

@return [String] Gets the Issuer from the Logout Request.


[View source]
def name_id : String | Nil #

@return [String] Gets the NameID of the Logout Request.


[View source]
def name_id_format : String | Nil #

@return [String] Gets the NameID Format of the Logout Request.


[View source]
def name_id_node : XML::Node | Nil #

[View source]
def nameid : String | Nil #

[View source]
def nameid_format : String | Nil #

[View source]
def not_on_or_after : Time | Nil #

@return [Time|nil] Gets the NotOnOrAfter Attribute value if exists.


[View source]
def options : Hash(Symbol, RedirectSignature::OptionValue) #

[View source]
def request : String #

[View source]
def request_id : String | Nil #

[View source]
def session_indexes : Array(String) #

@return [Array] Gets the SessionIndex if exists (Supported multiple values). Empty Array if none found


[View source]
def settings : Settings | Nil #

[View source]
def settings=(settings : Settings | Nil) #

[View source]
def soft : Bool #

[View source]
def soft=(soft : Bool) #

[View source]