-
Notifications
You must be signed in to change notification settings - Fork 9
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
OneLogin Fallback Flow #10282
OneLogin Fallback Flow #10282
Conversation
This now returns a Candidate if there is a matching OneLoginAuth email address
…_in_email` to accept an email address A Candidate may have more than one email address for authentication, the additional `email_address` argument is needed to send emails to the correct address
Sign up, Sign in and Account page flows covered in separate specs. Each spec includes flowing through scenarios where the Candidate does and does not have OneLogin setup and using either of the connected email addresses.
...system/candidate_interface/signup_and_signin/fallback_flow/candidate_uses_start_page_spec.rb
Show resolved
Hide resolved
...system/candidate_interface/signup_and_signin/fallback_flow/candidate_uses_start_page_spec.rb
Outdated
Show resolved
Hide resolved
Co-authored-by: Lori Bailey <[email protected]>
Co-authored-by: Lori Bailey <[email protected]>
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.
Found this bug here when you land on the expired link page
email.me.new.link.broken.mov
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've dev tested this on my local. I can login with 2 emails for the same candidate, the candidate email and the one login email linked to the candidate. I can also create a new account if the email is not in OneLoginAuth or Candidate tables.
This works as expected, well done! 💯
end | ||
|
||
def and_i_submit_my_email_address | ||
fill_in t('authentication.sign_up.email_address.label'), with: @candidate.email_address |
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.
Maybe use the actual text rather than the translation
...erface/signup_and_signin/candidate_signs_in_with_an_authentication_token_with_a_path_spec.rb
Outdated
Show resolved
Hide resolved
spec/system/candidate_interface/signup_and_signin/fallback_flow/candidate_signs_in_spec.rb
Outdated
Show resolved
Hide resolved
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've tested all the scenarios I can think of with signing in / out, creating one login accounts, using expired links, etc on the review app. Everything is working as expected as far as I can tell.
It would be nice to have the test files use text instead of translation references, but not a blocker.
…gns_in_with_an_authentication_token_with_a_path_spec.rb Co-authored-by: Lori Bailey <[email protected]>
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
Context
As part of the introduction of One Login, we have had to make changes to how the Magic Links (fallback) login flow works.
This change will allow Candidates to sign in using either their Candidate email address or their OneLogin email address.
Changes proposed in this pull request
Candidate.for_email
now checks for connected OneLoginAuth records matching the email addressGuidance to review
Link to Trello card
https://trello.com/c/BWEajuXS
Things to check