Skip to content

Getting AuthMissingParameter upn with AzureADOAuth2 #1164

@sebpeterson

Description

@sebpeterson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions