-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for multiple/mixed attribute types. #245
base: master
Are you sure you want to change the base?
Conversation
…table into multiple-roles
Okay, that's positive. This feels quite... ugly... to mutate global state in a class when a configuration flag is set. |
<%= form_tag destroy_user_session_path(entity_id: "http://localhost:8020/saml/metadata"), method: :delete do %> | ||
<%= submit_tag "Log out" %> | ||
<% end %> | ||
HOME | ||
} | ||
route "root to: 'home#index'" | ||
|
||
# TODO: https://github.com/heartcombo/devise/blob/main/lib/generators/active_record/templates/migration.rb - string vs array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, potentially there should be some fancy string replacement done in the migration to make it
t.string :groups, array: true
…lly using the methods that exist
Annoying.
However, that should be a OneLogin::RubySaml::Attributes object with those methods. |
@@ -1,3 +1,3 @@ | |||
module DeviseSamlAuthenticatable | |||
VERSION = "1.9.1" | |||
VERSION = "2.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this actually a breaking change? It seems like it's backwards-compatible, which is great! In which case, we could release 1.10.0
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did this as a major version bump, as the reconfiguration of the attributes-map.yml is a bit of a pain; and people will have to adjust their custom attribute resolvers slightly.
spec/devise_saml_authenticatable/saml_mapped_attributes_spec.rb
Outdated
Show resolved
Hide resolved
…e have now defined which are arrays and which are singular values
Revised version of #159