Add oauth ability #1292
-
First Check
Commit to Help
Example CodeDescriptionPerhaps what we need to focus on is how to better choose the configuration required by developers. If developers need the configuration of github login, we can easily help users complete this function. Operating SystemLinux, Windows, macOS, Other Operating System DetailsAny Python Version3.11 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
Thanks for your suggestion. This feature is something we plan to include in a future update of this template 😎 🚀 |
Beta Was this translation helpful? Give feedback.
-
|
Any progress on this? Which example I can use to add login with Github? |
Beta Was this translation helpful? Give feedback.
-
|
Saw this is still hanging — wanted to push it forward. Before anyone jumps into code, worth hearing what people are thinking. Library-wise, are we going with authlib, or is there a preference for something else like httpx-oauth, or even a minimal hand-rolled version? Scope: just the common social-login providers, or proper OIDC (ID token validation, discovery, etc.) from the start? Worth bundling RBAC into this too, or keep that as a separate discussion so the PR doesn't balloon? And how far on group/claim sync — create a user on first login and stop there, or sync groups and roles from the IdP on every login? The latter basically pushes this into real SSO territory, which is a different complexity class. The hardest part is the balance. Template has to stay approachable for newcomers — too many knobs and people bounce — but it also needs enough convenience out of the box that experienced devs don't just rip it out and rewrite. Curious where people think that line should be. |
Beta Was this translation helpful? Give feedback.
-
|
Meantime I added Github login using Authlib, but also HTTPS cookie instead of localStorage into my fork. Feel free to reuse or use as reference: |
Beta Was this translation helpful? Give feedback.
Hi @Undertone0809
Thanks for your suggestion. This feature is something we plan to include in a future update of this template 😎 🚀
Thank you for your interest!