-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix: OAuth login flow #1707
fix: OAuth login flow #1707
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1707 +/- ##
==========================================
+ Coverage 76.67% 76.80% +0.12%
==========================================
Files 55 56 +1
Lines 8091 8114 +23
==========================================
+ Hits 6204 6232 +28
+ Misses 1887 1882 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@dpgaspar I like this change because:
Removal of the Register button makes sense. Since people will take it as alternative of OAuth2 provider which is not the case at all when using |
The only comments from me is this is a break change of sign in UX (no more auto sign-in, new Sign in with xxx 🥳 button) which needs to be documented, so I assume there will be documentation change as well (happy to help if needed!) |
@dpgaspar Thanks for making this change, may I ask when this PR can be merged? |
@shawnzhu sorry about this, lot's of other priorities, kind of undecided where to place docs to alert user's on the breaking UI change. What do you think about placing it on the docs/auth and creating a notice on README with a link to the docs? |
Yes, a notice in the authentication section would be good enough for me. Since merged changes will show up in release notes, this PR is already a good way to communicate break change. |
Merged, planning on making the release this week (3.4.0) @shawnzhu Thank you for you help |
Just tried this feature from v3.4.0, works great and thank you @dpgaspar ! |
that's great, thank you for ALL your help, really appreciated |
I just dug out this PR as this change has influenced our user flow. I wonder whether this is something community would consider bringing back but maybe as a opt-in behavior? I am happy to contribute the PR. cc @shawnzhu |
Description
Since #1618 that, when there's only an OAuth2 provider the user is redirected directly to the provider Auth flow. This is nice but unfortunately makes it impossible for the user to completely signoff from the application.
This PR disables the automatic signin but simplifies the auth flow for OAuth, users are no longer required to choose a provider and then click Signin, that caused confusion even more when there's only one provider.
Current flow just renders a Sigin for each provider that the user chooses, one step only.
Also removed the register option since it was not needed. If
AUTH_USER_REGISTRATION
is True the sigin automatically registers the user.Before:
After, with just one provider:
After, with multiple providers:
ADDITIONAL INFORMATION