diff --git a/src/Savings.SPA/Program.cs b/src/Savings.SPA/Program.cs index 98f0c89..fc64128 100644 --- a/src/Savings.SPA/Program.cs +++ b/src/Savings.SPA/Program.cs @@ -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"]!); }); } diff --git a/src/Savings.SPA/wwwroot/appsettings.json b/src/Savings.SPA/wwwroot/appsettings.json index 02f14b5..2085394 100644 --- a/src/Savings.SPA/wwwroot/appsettings.json +++ b/src/Savings.SPA/wwwroot/appsettings.json @@ -6,6 +6,6 @@ "Authority": "https://login.microsoftonline.com/{tenantID}/", "ClientId": "{spaClientID}", "ValidateAuthority": true, - "DefaultScope": "api://{apiClientID}/Savings.All" + "DefaultAccessTokenScopes": "api://{apiClientID}/Savings.All" } } \ No newline at end of file