Skip to content

Azure AD OAuth: missing User.Read scope prevents Login #807

@mikep11

Description

@mikep11

When using Azure AD (Entra ID) OAuth, authentication fails after token exchange because script-server requested scopes are only:

openid profile email

As a result, the access token does not include User.Read, and Graph returns 403 Forbidden.

Suggestion:
Include User.Read in the default Azure AD OAuth scopes:

Change Line 20 in src/auth/auth_azure_ad_oauth.py to:
openid profile email User.Read

Once I made this change, everything worked.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions