django-admin-sso
django-admin-sso copied to clipboard
Keycloak Scope
I tested this package with keycloak as the identity provider.
The problem is that keycloak will not return the id_token unless "scope": "openid",.
Is the package focusing mainly on google or are other providers welcome?
Please submit a pull request :)
I have only ever used this package with the Google OAuth2 endpoint and have written custom code based on requests-oauthlib to interact with Keycloak. If you find a good way to add Keycloak support that would be great.
Btw, maybe you want to take a closer look at https://django-authlib.readthedocs.io/en/latest/#admin-oauth2 too. django-authlib's admin SSO support has stronger assumptions that it is working with Google, but it doesn't build on the deprecated https://pypi.org/project/oauth2client/ but on https://pypi.org/project/requests-oauthlib/ , a better bet for the future.