File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
2-WebApp-graph-user/2-3-Multi-Tenant
5-WebApp-AuthZ/5-2-Groups Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,10 @@ public void ConfigureServices(IServiceCollection services)
8282
8383 return Task . FromResult ( 0 ) ;
8484 } ;
85- } , option => { } ) ;
85+ } , options =>
86+ {
87+ Configuration . Bind ( "AzureAD" , options ) ;
88+ } ) ;
8689
8790 services . AddWebAppCallsProtectedWebApi ( Configuration , new string [ ] { GraphScope . UserReadAll } )
8891 . AddInMemoryTokenCaches ( ) ;
Original file line number Diff line number Diff line change @@ -42,7 +42,10 @@ public void ConfigureServices(IServiceCollection services)
4242 // See https://docs.microsoft.com/en-us/aspnet/core/security/authorization/roles for more info.
4343 // // Use the groups claim for populating roles
4444 // options.TokenValidationParameters.RoleClaimType = "groups";
45- } , options => { } ) ;
45+ } , options =>
46+ {
47+ Configuration . Bind ( "AzureAD" , options ) ;
48+ } ) ;
4649
4750 services . AddWebAppCallsProtectedWebApi ( Configuration , new string [ ] { "User.Read" , "Directory.Read.All" } )
4851 . AddInMemoryTokenCaches ( ) ;
You can’t perform that action at this time.
0 commit comments