Getting AuthMissingParameter upn with AzureADOAuth2 #1165
Unanswered
sebpeterson
asked this question in
Q&A
Replies: 2 comments
-
social-core/social_core/backends/azuread.py Lines 78 to 83 in 858fd3b It could be caused by Azure configuration to not pass it. PS: See also #684. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Anyone have a solution for this? I tried adding the UPN to the claims in the app configuration, but I still get the same error "Missing needed parameter upn" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
trying to get Azure social working. copied an existing working setup, but getting this new error:
Exception Type: AuthMissingParameter
Exception Value: Missing needed parameter upn
Exception Location: /usr/local/lib/python3.12/site-packages/social_core/backends/azuread.py, line 82, in get_user_id
Raised during: social_django.views.complete
My settings.py:
SOCIAL_AUTH_AZUREAD_OAUTH2_KEY = xxx
SOCIAL_AUTH_AZUREAD_OAUTH2_SECRET = xxx
SOCIAL_AUTH_JSONFIELD_ENABLED = True
SOCIAL_AUTH_USERNAME_IS_FULL_EMAIL = True
SOCIAL_AUTH_PROTECTED_USER_FIELDS = ['email',]
SOCIAL_AUTH_IMMUTABLE_USER_FIELDS = ['email', 'first_name', 'last_name']
Any ideas on how to investigate this ?
Cheers.
Beta Was this translation helpful? Give feedback.
All reactions