Module: Saml::Kit::Respondable

Extended by:
ActiveSupport::Concern
Included in:
LogoutResponse, Response
Defined in:
lib/saml/kit/respondable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#request_idObject (readonly)

Returns the value of attribute request_id.



7
8
9
# File 'lib/saml/kit/respondable.rb', line 7

def request_id
  @request_id
end

Instance Method Details

#in_response_toObject

Returns the /InResponseTo attribute.



25
26
27
# File 'lib/saml/kit/respondable.rb', line 25

def in_response_to
  at_xpath('./*/@InResponseTo').try(:value)
end

#status_codeObject

Returns the /Status/StatusCode@Value



20
21
22
# File 'lib/saml/kit/respondable.rb', line 20

def status_code
  at_xpath('./*/samlp:Status/samlp:StatusCode/@Value').try(:value)
end

#success?Boolean

Returns true if the Status code is #Namespaces::SUCCESS

Returns:

  • (Boolean)


30
31
32
# File 'lib/saml/kit/respondable.rb', line 30

def success?
  Namespaces::SUCCESS == status_code
end