Skip to content

Commit 0de72d3

Browse files
author
Kalyan Krishna
committed
Minor fiix
1 parent a1636a6 commit 0de72d3

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

5-WebApp-AuthZ/5-2-Groups/Startup.cs

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,20 @@ public void ConfigureServices(IServiceCollection services)
3535
options.HandleSameSiteCookieCompatibility();
3636
});
3737

38-
// Sign-in users with the Microsoft identity platform
39-
services.AddSignIn(options =>
40-
{
41-
// Uncomment the following lines code instruct the asp.net core middleware to use the data in the "groups" claim in the [Authorize] attribute and for User.IsInrole()
42-
// See https://docs.microsoft.com/en-us/aspnet/core/security/authorization/roles for more info.
43-
// // Use the groups claim for populating roles
44-
// options.TokenValidationParameters.RoleClaimType = "groups";
45-
}, options =>
46-
{
47-
Configuration.Bind("AzureAd", options);
48-
});
38+
// TODO: Tiago, please investigate
39+
//// Sign-in users with the Microsoft identity platform
40+
//services.AddSignIn(options =>
41+
// {
42+
// // Uncomment the following lines code instruct the asp.net core middleware to use the data in the "groups" claim in the [Authorize] attribute and for User.IsInrole()
43+
// // See https://docs.microsoft.com/en-us/aspnet/core/security/authorization/roles for more info.
44+
// // // Use the groups claim for populating roles
45+
// // options.TokenValidationParameters.RoleClaimType = "groups";
46+
// }, options =>
47+
// {
48+
// Configuration.Bind("AzureAd", options);
49+
// });
50+
51+
services.AddSignIn(Configuration);
4952

5053
services.AddWebAppCallsProtectedWebApi(Configuration, new string[] { "User.Read", "Directory.Read.All" })
5154
.AddInMemoryTokenCaches();

0 commit comments

Comments
 (0)