Skip to content

Commit

Permalink
Change to default access token scope
Browse files Browse the repository at this point in the history
  • Loading branch information
liguori committed Nov 4, 2024
1 parent e83c6fc commit 8f1b9ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/Savings.SPA/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
options.ProviderOptions.Cache.CacheLocation = "localStorage";
options.ProviderOptions.LoginMode = "redirect";
builder.Configuration.Bind("AzureAd", options.ProviderOptions.Authentication);
options.ProviderOptions.DefaultAccessTokenScopes.Add("https://graph.microsoft.com/User.Read");
options.ProviderOptions.DefaultAccessTokenScopes.Add(builder.Configuration["AzureAd:DefaultScope"]!);
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/Savings.SPA/wwwroot/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"Authority": "https://login.microsoftonline.com/{tenantID}/",
"ClientId": "{spaClientID}",
"ValidateAuthority": true,
"DefaultScope": "api://{apiClientID}/Savings.All"
"DefaultAccessTokenScopes": "api://{apiClientID}/Savings.All"
}
}

0 comments on commit 8f1b9ee

Please sign in to comment.