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

Refresh Credentials Hook #79

Merged
merged 3 commits into from
May 30, 2024
Merged

Conversation

strouptl
Copy link
Collaborator

This PR moves the refresh_credentials functionality to a dedicated hook which takes place only after a complete and successful authentication (rather than applying it, and then logging out within the create_otp_session method).

While it does not fix any specific issues, it relieves some of the burden on the create_otp_session, which prepares the way for additional optimizations (pending).

@strzibny
Copy link
Collaborator

We'll need a rebase

strouptl added 3 commits May 30, 2024 20:30
…d_at value;

- Switch to warden session scope for simplicity;
- Move requiring of "hooks/refreshable" to main devise-otp.rb file;
- Remove "scoped" verbiage from session properties (since scope is now applied via warden);
- Remove comment regarding cookie scope for otp_refresh_property (now applied via warden);
@strouptl strouptl force-pushed the refresh_credentials branch from d1c55d4 to de7683e Compare May 30, 2024 11:34
@strouptl
Copy link
Collaborator Author

Rebased.

@strzibny strzibny merged commit ef9d8a0 into wmlele:master May 30, 2024
1 check passed
@strouptl strouptl deleted the refresh_credentials branch May 30, 2024 17:11
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.

2 participants