-
Notifications
You must be signed in to change notification settings - Fork 133
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
Send redirectUrl to listener and strip protocol before saving #1224
Conversation
If the url the user logs in with is redirected, we want to know the redirect url and use that for login. We save this url (or the original url) to app prefs with the protocol stripped since it's not needed for the rest of the login process and can cause issues when looking up the site by the url.
Generated by 🚫 dangerJS |
Generated by 🚫 dangerJS |
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.
Nice work!
Fixes #1218 by using the redirect url when available instead of the entered url for matching the site to the authenticated user.
If the url the user logs in with is redirected, we want to know the redirect url and use that for the rest of the login process. We save this redirect url (or the original url) to
AppPrefs
with the protocol stripped since it's not needed for the rest of the login process and can cause issues when looking up the site by the url to find a match for the authenticated user.Some special things to note:
The login process does not care which protocol the user enters (or if any at all). So entering
www.droidtester2018.com
,droidtester2018.com
,http://www.droidtester2018.com
orhttps://droidtester2018.com
will all be handled identically. Here are examples:Examples
prepending with
www
:prepending with
http://www
:prepending with
https://
Update release notes:
RELEASE-NOTES.txt
.