django-admin-sso icon indicating copy to clipboard operation
django-admin-sso copied to clipboard

Keycloak Scope

Open surfer190 opened this issue 4 years ago • 1 comments

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?

surfer190 avatar Mar 24 '21 11:03 surfer190

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.

matthiask avatar Mar 24 '21 14:03 matthiask