Class: SamlAuthenticatable::SamlResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/devise_saml_authenticatable/saml_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(saml_response, attribute_map) ⇒ SamlResponse

Returns a new instance of SamlResponse.


7
8
9
10
# File 'lib/devise_saml_authenticatable/saml_response.rb', line 7

def initialize(saml_response, attribute_map)
  @attributes = ::SamlAuthenticatable::SamlMappedAttributes.new(saml_response.attributes, attribute_map)
  @raw_response = saml_response
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes


5
6
7
# File 'lib/devise_saml_authenticatable/saml_response.rb', line 5

def attributes
  @attributes
end

#raw_responseObject (readonly)

Returns the value of attribute raw_response


5
6
7
# File 'lib/devise_saml_authenticatable/saml_response.rb', line 5

def raw_response
  @raw_response
end

Instance Method Details

#attribute_value_by_resource_key(key) ⇒ Object


12
13
14
# File 'lib/devise_saml_authenticatable/saml_response.rb', line 12

def attribute_value_by_resource_key(key)
  attributes.value_by_resource_key(key)
end