class

SAML::Response

Inherits SAML::SAMLMessage < Reference < Object

SAML2 Authentication Response

Constants

DSIG = "http://www.w3.org/2000/09/xmldsig#"
XENC = "http://www.w3.org/2001/04/xmlenc#"

Constructors

new(response : String, settings : Settings, options : Nil | Hash(Symbol, Bool | Float64 | Int32 | String) = nil)
Source

Instance methods

allowed_clock_drift

Allowed clock drift for time validation. An explicit options[:allowed_clock_drift] wins; otherwise the settings-level tolerance applies (10s by default, matching the legacy Ruby service).

Source
attributes

Get attributes from AttributeStatement

Source
audiences

Get audiences

Source
destination

Get Destination attribute

Source
document
Source
in_response_to

Get InResponseTo attribute

Source
issuers

Get issuers

Source
name_id

Get NameID from response

Source
name_id_format

Get NameID format

Source
not_before

Get NotBefore condition

Source
not_on_or_after

Get NotOnOrAfter condition

Source
options
Source
response_string
Source
session_expires_at

Get session expiration time

Source
sessionindex

Get session index from AuthnStatement

Source
settings
Source
status_code

Get status code

Source
status_message

Get status message

Source
success?

Check if status is success

Source
valid?(collect_errors : Bool = false) : Bool

Validate the SAML Response

Source