Closed thooams closed 3 years ago
Maybe a bit late 😊
However, I just ran into the same issue where I only got the first value returned. Found a solution in the README for ruby-saml
: https://github.com/onelogin/ruby-saml#retrieving-attributes.
Setting OneLogin::RubySaml::Attributes.single_value_compatibility = false
makes attribute_statements support multiple values for each attribute.
@arvida Where did you set this option? We're trying to do the same thing but no where we put that statement seems to work.
@SolomonHD We have an initializer file for OmniAuth (config/initializers/omniauth.rb
) in our app. I just put the statment first in that file and that looks to do the trick.
I use
attribute_statements
to map some attributes. But when i maproleIds
attribute toroles
attribute, only the first result of array is returned whereas the raw values return an array.Omniauth conf
Omiauth callback