Skip to content
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

Use Hydra.config.user_key_field to determine User#user_key #3480

Merged
merged 1 commit into from
Feb 2, 2019

Conversation

no-reply
Copy link
Contributor

#user_key was previously out-of-sync with .find_by_user_key. The latter used
application level configuration, while the former was hard coded to Devise.authentication_keys.first implementation via Blacklight::AccessControls::User. Here they are realigned, and derived from the Hydra-level configuration.

Adds a method User.user_key_field to encapsulate the key field data, and uses it throughout the class.

@samvera/hyrax-code-reviewers

jcoyne
jcoyne previously approved these changes Jan 25, 2019
`#user_key` was previously out-of-sync with `.find_by_user_key`. The latter used
application level configuration, while the former was hard coded to
`Devise.authentication_keys.first` implementation via
`Blacklight::AccessControls::User`. Here they are realigned, and derived from
the `Hydra`-level configuration.

Adds a method `User.user_key_field` to encapsulate the key field data, and uses
it throughout the class.
Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me.

@cjcolvar cjcolvar merged commit 683fa4f into master Feb 2, 2019
@cjcolvar cjcolvar deleted the user_key branch February 2, 2019 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants