Closed arserbin3 closed 9 years ago
@arserbin3 Do you still need this feature?
I added a fetch_raw_info
option for #31 that may address your issue.
An example:
provider :cas,
fetch_raw_info: lambda { |strategy, options, ticket, user_info|
user_info['xyz:attributes'].first.inject({}) do |info, (key, value)|
info[key.match(%r{xyz:(?<key>\w+)})[:key]] = value
info
end
}
This maps the namespaced user_info
attributes into non-namespaced attributes and returns them back to the strategy which will then merge them into the user info hash.
From what I understand the cas:attributes was introduced in CAS 3. In CAS 2, we currently have the attributes in a different namespace like so:
Is it currently possible to reference these somehow, in the settings? such as: