Is dex a good fit for multiple social logins in a web application? #3905
Unanswered
ericchaves
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks,
I'm new to the OIDC world and would like to get some thoughts on a (crazy?) idea I'm working on. Please forgive me if this isn't the right place for this kind of question—in that case, please let me know where would be more appropriate to ask.
I'm developing a micro SaaS application where I plan to support only social logins. In this app, users won't have separate paths for sign-in and sign-up; there will simply be buttons like "Login with Google," "Login with Microsoft," "Login with Facebook," and so on. I plan to support all major providers, both tech and social (e.g., GitHub, Google, Facebook, Microsoft, Apple, Pinterest, Spotify, etc.). My idea is to automatically create customer accounts on first access, using the user info provided by the chosen identity provider.
Initially, I was planning to use multiple oauth2-proxy containers as middleware (e.g., using forward-auth together with a proxy like Traefik or NGINX), one container per IDP. Then I came across Dex, which at first glance seemed like a better fit since it already supports multiple providers. However, to create user accounts, I need specific data to be present in the ID token, or I may need to query the user-info endpoint from the OIDC/IDP provider. Unfortunately, Dex seems to issue ID tokens with only standard OIDC claims, and I’m concerned that some providers might include data I need in non-standard claims. Additionally, Dex does not handle cookies or implement a forward-auth mechanism, which means I would need to either pair it with a reverse proxy like oauth2-proxy or implement my own cookie-handling logic.
Before dedicating more effort, I’d like to hear some opinions from more experienced folks.
Thanks in advance for your input!
Beta Was this translation helpful? Give feedback.
All reactions