-
Notifications
You must be signed in to change notification settings - Fork 235
Description
First of all this is so good! I don't know why i did not came across it before :)
Is your feature request related to a problem? Please describe.
Nowadays is quite common to use 3rd party auths, like EntraID with Microsoft, Google, Github, etc. I think they are not that many and in my experience once the auth is done it doesn't really have to change so I think is good to add as a template and then maybe allow the developer to activate it via en environment variable
Describe the solution you'd like
Add endpoints to the backend for each provider such as /login/provider /callback/provider and manage the parsing of the access token to get or create a user and then create a JWT token using the already including functions.
Then allow the configuration to be defined such that either in environment variables or similar, we can define which auth/auths to use (google, microsoft, github, native)
Additional context
Perhaps context, is that in my experience by adding this it will enable more enterprise ready applications where setting auth is very important to get correct.
If you think it would be helpful, I could create a PR.