class DeviseSamlAuthenticatable::DefaultAttributeMapResolver
Attributes
saml_response[R]
Public Class Methods
new(saml_response)
click to toggle source
# File lib/devise_saml_authenticatable/default_attribute_map_resolver.rb, line 3 def initialize(saml_response) @saml_response = saml_response end
Public Instance Methods
attribute_map()
click to toggle source
# File lib/devise_saml_authenticatable/default_attribute_map_resolver.rb, line 7 def attribute_map return {} unless File.exist?(attribute_map_path) attribute_map = YAML.load(File.read(attribute_map_path)) if attribute_map.key?(Rails.env) attribute_map[Rails.env] else attribute_map end end
Private Instance Methods
attribute_map_path()
click to toggle source
# File lib/devise_saml_authenticatable/default_attribute_map_resolver.rb, line 22 def attribute_map_path Rails.root.join("config", "attribute-map.yml") end