-
-
Notifications
You must be signed in to change notification settings - Fork 585
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
Authentication: Add OIDC Integration #1797
Comments
Would like to work on this |
Is part of this request to add an OIDC authentication backend and authenticate against that instead of the default In general, I'd like a little more clarity on the requirements here. Thanks! |
We definitely need a user object for the rest of the application to work. I'm not sure how the oidc provider works, but I assumed it would do that automatically |
Yes, I was just thinking that if we set up an OIDC IDP like Authentik, we would manage/authenticate user accounts there instead of locally in |
I've added a basic example of support for OIDC authentication using the I understand there is much manual setup here but I don't see another way to automate the creation of the IDP and the setting of the necessary environment variables. If anyone has further information on how to address this, it would be much appreciated. |
If we're setting up oidc auth, the oidc provider part isn't wger's responsibility. Also needing a couple environment variables is pretty common. These are well-known variables that most providers use, so it wouldn't be limited to working with Authentik. We would probably need some custom variables to allow some config through the env like OIDC_AUTH_PROVIDER_NAME |
This only allows to setup one OIDC provider right? Is that enough or would we potentially want more? |
Yes, this was meant specifically for the Authentik. But the mozilla-django-oidc library can definitely extend to other OIDC providers too. Again, the issue is that (as far as I know) the provider needs to be configured manually and separately from this app. |
Use case
I would like to see OIDC support for authentication, to make it easier to integrate with existing setups that use auth providers such as authentik.
Proposal
Django appears to have support for OIDC build in (https://django-oidc-provider.readthedocs.io/en/master/), so adding it here should definitely be easier than if you were to start from scratch. If that somehow doesn't apply here, there should probably be another way to implement this as well. Let me know if I'm wrong!
The text was updated successfully, but these errors were encountered: