devise_saml_authenticatable
devise_saml_authenticatable copied to clipboard
Support single and multi value attributes
I think it is essential to handle both single and multi value attributes as Identity Providers often send responses containing both types, e.g. single for email and multi for roles.
I have provided an example of the new attribute map yaml. The type is configureable per attribute.
The change is not backwards compatible but it would be relatively easy to add if it is a blocking issue.
I fixed the tests on master, so you should also merge/rebase master again.
Hi Guys, any update about this PR? It will help a lot here =)
Bumping to see if there's any plans to include this as well. Having multiple attribute values for roles would be a big plus
I think this would be quite a valuable addition, but perhaps the way it is done should be changed a bit to be compatible with current setups without having to change the existing yml files for single value attributes. May look into making a PR for that if I find a good way to do it.
I would benefit greatly from this as a v2.0.0 and breaking change.
https://github.com/apokalipto/devise_saml_authenticatable/pull/245 fixes tests, add coverage.