diff --git a/graph-toolkit-productivity-hub-aspnetcore/OneProductivityHubAspNetCore/Pages/_Host.cshtml b/graph-toolkit-productivity-hub-aspnetcore/OneProductivityHubAspNetCore/Pages/_Host.cshtml index 2f3e9eed..c30362a2 100644 --- a/graph-toolkit-productivity-hub-aspnetcore/OneProductivityHubAspNetCore/Pages/_Host.cshtml +++ b/graph-toolkit-productivity-hub-aspnetcore/OneProductivityHubAspNetCore/Pages/_Host.cshtml @@ -28,7 +28,8 @@ loginHint: "@User.Claims.FirstOrDefault(c => c.Type == "preferred_username")?.Value", redirectUri: "/blank-auth-end.html", loginType: mgt.LoginType.Popup, - authority: "@Configuration["TeamsFx:Authentication:OAuthAuthority"]" + authority: "@Configuration["TeamsFx:Authentication:OAuthAuthority"]", + scopes: ["User.Read", "User.ReadBasic.All", "Calendars.Read", "Files.Read", "Files.Read.All", "Sites.Read.All", "Tasks.Read", "Tasks.ReadWrite", "People.Read"] }); diff --git a/graph-toolkit-productivity-hub-aspnetcore/OneProductivityHubAspNetCore/permissions.json b/graph-toolkit-productivity-hub-aspnetcore/OneProductivityHubAspNetCore/permissions.json index 2c3da4c8..254210ae 100644 --- a/graph-toolkit-productivity-hub-aspnetcore/OneProductivityHubAspNetCore/permissions.json +++ b/graph-toolkit-productivity-hub-aspnetcore/OneProductivityHubAspNetCore/permissions.json @@ -1,7 +1,7 @@ [ { "resource": "Microsoft Graph", - "delegated": [ "User.Read", "User.ReadBasic.All", "Calendars.Read", "Files.Read", "Files.Read.All", "Sites.Read.All", "Tasks.Read", "Tasks.ReadWrite", "People.Read", "User.ReadBasic.All" ], + "delegated": [], "application": [] } ]