Skip to content

Commit 9fa56a4

Browse files
wesmclaude
andcommitted
fix: add User.Read scope for MS Graph /me email validation
The MS Graph /me endpoint requires User.Read scope to return profile data. Without it, the token validation step after OAuth authorization would fail with HTTP 403. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dd5c48e commit 9fa56a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/microsoft/oauth.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ var Scopes = []string{
3636
"offline_access",
3737
"openid",
3838
"email",
39+
"User.Read", // required for MS Graph /me to validate email
3940
}
4041

4142
type TokenMismatchError struct {

0 commit comments

Comments
 (0)