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)
82
82
83
83
return Task . FromResult ( 0 ) ;
84
84
} ;
85
- } , option => { } ) ;
85
+ } , options =>
86
+ {
87
+ Configuration . Bind ( "AzureAD" , options ) ;
88
+ } ) ;
86
89
87
90
services . AddWebAppCallsProtectedWebApi ( Configuration , new string [ ] { GraphScope . UserReadAll } )
88
91
. AddInMemoryTokenCaches ( ) ;
Original file line number Diff line number Diff line change @@ -42,7 +42,10 @@ public void ConfigureServices(IServiceCollection services)
42
42
// See https://docs.microsoft.com/en-us/aspnet/core/security/authorization/roles for more info.
43
43
// // Use the groups claim for populating roles
44
44
// options.TokenValidationParameters.RoleClaimType = "groups";
45
- } , options => { } ) ;
45
+ } , options =>
46
+ {
47
+ Configuration . Bind ( "AzureAD" , options ) ;
48
+ } ) ;
46
49
47
50
services . AddWebAppCallsProtectedWebApi ( Configuration , new string [ ] { "User.Read" , "Directory.Read.All" } )
48
51
. AddInMemoryTokenCaches ( ) ;
You can’t perform that action at this time.
0 commit comments