File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
2-WebApp-graph-user/2-3-Multi-Tenant Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,6 @@ public void ConfigureServices(IServiceCollection services)
34
34
} ) ;
35
35
36
36
// Sign-in users with the Microsoft identity platform
37
- //services.AddSignIn(Configuration);
38
- services . AddAuthentication ( OpenIdConnectDefaults . AuthenticationScheme ) ;
39
37
services . AddSignIn ( Configuration ) ;
40
38
41
39
services . AddControllersWithViews ( options =>
Original file line number Diff line number Diff line change @@ -56,11 +56,8 @@ public void ConfigureServices(IServiceCollection services)
56
56
services . AddScoped < IMSGraphService , MSGraphService > ( ) ;
57
57
58
58
// Sign-in users with the Microsoft identity platform
59
- services . AddAuthentication ( OpenIdConnectDefaults . AuthenticationScheme )
60
- . AddSignIn ( options =>
59
+ services . AddSignIn ( options =>
61
60
{
62
- Configuration . Bind ( "AzureAD" , options ) ;
63
-
64
61
options . Events . OnTokenValidated = async context =>
65
62
{
66
63
string tenantId = context . SecurityToken . Claims . FirstOrDefault ( x => x . Type == "tid" || x . Type == "http://schemas.microsoft.com/identity/claims/tenantid" ) ? . Value ;
You can’t perform that action at this time.
0 commit comments