Sha256: 24d9a34c7f1afc4da08fcdb2c3e8881d26a6cdbf44721498f328e9b2dbe1f6d1
Contents?: true
Size: 557 Bytes
Versions: 8
Compression:
Stored size: 557 Bytes
Contents
module DeviseSamlAuthenticatable class DefaultAttributeMapResolver def initialize(saml_response) @saml_response = saml_response end 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 attr_reader :saml_response def attribute_map_path Rails.root.join("config", "attribute-map.yml") end end end
Version data entries
8 entries across 8 versions & 1 rubygems