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)
3434 } ) ;
3535
3636 // Sign-in users with the Microsoft identity platform
37- //services.AddSignIn(Configuration);
38- services . AddAuthentication ( OpenIdConnectDefaults . AuthenticationScheme ) ;
3937 services . AddSignIn ( Configuration ) ;
4038
4139 services . AddControllersWithViews ( options =>
Original file line number Diff line number Diff line change @@ -56,11 +56,8 @@ public void ConfigureServices(IServiceCollection services)
5656 services . AddScoped < IMSGraphService , MSGraphService > ( ) ;
5757
5858 // Sign-in users with the Microsoft identity platform
59- services . AddAuthentication ( OpenIdConnectDefaults . AuthenticationScheme )
60- . AddSignIn ( options =>
59+ services . AddSignIn ( options =>
6160 {
62- Configuration . Bind ( "AzureAD" , options ) ;
63-
6461 options . Events . OnTokenValidated = async context =>
6562 {
6663 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