-
Notifications
You must be signed in to change notification settings - Fork 131
Open
Labels
Description
Describe the bug
I've managed to get this so that I can log in via AAD. Now, when I attempt to link my GitHub account, the portal is returning a 500 error on the /link
url due to Invalid status code: 403
from the backend. I've added a bit of extra debug in and I can see this is coming from the Microsoft Graph API:
{
error: {
code: 'Authorization_RequestDenied',
message: 'Insufficient privileges to complete the operation.',
innerError: {
date: '2020-08-03T20:30:06',
'request-id': '994aeeab-f00a-484b-b591-0d8ef14d21cf'
}
}
}
The problem is, I can't suss out what the necessary permissions are. So far, I have granted delegated permissions for:
- Mail.Read
- openid
- profile
- User.Read
From what I can tell, this should be more than enough, given that the request is asking for:
?$select=id,mailNickname,userType,displayName,givenName,mail,userPrincipalName
What am I missing from my permissions to get this working properly? Will this even work for a non-MS company?