Skip to content

bug: Microsoft Social connector does not request additional scopes #7089

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

Open
2 of 4 tasks
MartBono opened this issue Mar 3, 2025 · 1 comment
Open
2 of 4 tasks
Assignees
Labels
bug Something isn't working

Comments

@MartBono
Copy link

MartBono commented Mar 3, 2025

Describe the bug

When using the Microsoft Social connector the email and profile picture does not get added on login. It seems that the scopes are not properly send to Microsoft.

At the top of:
logto/packages/connectors/connector-azuread/src/constant.ts

It has a hard coded scope: "User.Read".

Expected behavior

It is expected that when permissions are given in Microsoft Azure Graph Permissions. That these permissions are used by Logto to retrieve the added info, like the email and profile picture.

In contrast to for example the Google Social connector, there is no paragraph on adding the scopes to Azure.

How to reproduce?

  • Make a new empty project
  • Add Microsoft Social connector
  • Add scopes (email, profile and openid) in Microsoft Azure Graph Premissions
  • Login using Logto with a Microsoft account that has a profile picture.
  • Observe that Logto does not make an account with a email and or profile picture

Context

  • Logto Cloud
  • Self-hosted, Logto version =
    • Container (Docker image)
    • Raw Node.js

Screenshots

@MartBono MartBono added the bug Something isn't working label Mar 3, 2025
@darcyYe darcyYe self-assigned this Mar 13, 2025
@darcyYe
Copy link
Contributor

darcyYe commented Mar 13, 2025

Fix in PR#7087

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants