-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Use Azure v2.0 endpoints #285
Comments
INFO 2023-05-07 18:07:21,712 django_auth_adfs Loaded settings from ADFS server. |
this happends if i cancel with CTRL+C <QuerySet []> |
No idea why but when a run with python manage.py runserver 0.0.0.0:8000 the api dont respond but when i run it with docker, works fine. |
Please de code the token at jwt.me/jwt.io and check the |
Hi @jlcmux, @JonasKs Backend API app registration configuration On client I have added API permission Generation OAuth token using https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token I'm able to get the access token, and using the same in the header while calling the API from postman My configurations in Django application settings.py
|
Please attach debug logs. |
Hi @JonasKs , Please find additional logs here, have replaced sensitive data with tokens DEBUG 2023-06-22 12:06:34,979 django_auth_adfs Loading ID Provider configuration. Let me know if you need additional information when I decode the access token issuer id is https://sts.windows.net/<tenant_id>/ If I remove 'VERSION': "v2.0" from AUTH_ADFS then I'm getting below error django_auth_adfs User claim's doesn't have the claim 'upn' in his claims: |
Sounds like you haven't changed the token version to v2 in the manifest. Do that and give it 24 hours and test again. Azure is slow b |
Hi @JonasKs, I have made that change yesterday itself but as you mentioned it took time to reflect. Now, the change I can see however I'm getting a differet error DEBUG 2023-06-23 18:35:11,438 django_auth_adfs The configured groups claim groups was not found in the access token My settings are this, is this something I need to change. I think I'm close to resolving this issue but yet unable to figure it out.
|
This can be configured. |
I'm trying to use v2.0 endpoints and i found the settings:
i got the token but the django backend shows:
{
"detail": "Invalid access token."
}
Any other settings needed to do this?
Thank you.
The text was updated successfully, but these errors were encountered: