-
Notifications
You must be signed in to change notification settings - Fork 166
Clean up feature flag for second factor reauthentication #8707
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -1,18 +1,6 @@ | ||||
| module ReauthenticationRequiredConcern | ||||
| include MfaSetupConcern | ||||
|
|
||||
| def confirm_recently_authenticated | ||||
| if IdentityConfig.store.reauthentication_for_second_factor_management_enabled | ||||
| confirm_recently_authenticated_2fa | ||||
| else | ||||
| @reauthn = reauthn? | ||||
| return unless user_signed_in? | ||||
| return if recently_authenticated? | ||||
|
|
||||
| prompt_for_current_password | ||||
| end | ||||
| end | ||||
|
|
||||
| def confirm_recently_authenticated_2fa | ||||
|
||||
| @reauthn = reauthn? | ||||
| return unless user_fully_authenticated? | ||||
|
|
@@ -38,31 +26,13 @@ def recently_authenticated? | |||
| authn_at > Time.zone.now - IdentityConfig.store.reauthn_window | ||||
| end | ||||
|
|
||||
| def prompt_for_current_password | ||||
| store_location(request.url) | ||||
| user_session[:context] = 'reauthentication' | ||||
| user_session[:factor_to_change] = factor_from_controller_name | ||||
|
||||
| <%= t('help_text.change_factor', factor: user_session[:factor_to_change]) %> |
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.
Yeah, this controller has been re-used in other ways where it's not changing factors and the change_factor does not exist. It's also not translated and the content should be re-written to be more generic.
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.
https://gsa-tts.slack.com/archives/CEUQ9FXNJ/p1643994476402979 is a Slack thread that discusses it a bit (with an associated ticket that's linked above that line)
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'll un-icebox that ticket and get it in front of the team.
Outdated
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.
Can this ticket be cancelled?
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 think so, yeah. I can do that.
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.
The part about the untranslated string can be cancelled, but does the copy on the page still say "sign in with your phone" for all other MFAs? If so then that part of the ticket should stay
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.
My hope is to remove this page since it'll be unused after this PR
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.
ah right!!! thx
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.
Uh oh!
There was an error while loading. Please reload this page.