Skip to content

Commit ab6476e

Browse files
committed
fix a few things
1 parent 109d8ef commit ab6476e

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

1-WebApp-OIDC/1-1-MyOrg/Startup.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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 =>

2-WebApp-graph-user/2-3-Multi-Tenant/Startup.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)