We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8076201 commit 50deb62Copy full SHA for 50deb62
grade-management-new/GradeManagement.Server/Program.cs
@@ -35,16 +35,7 @@ public static void Main(string[] args)
35
builder.Services.AddHttpContextAccessor();
36
builder.Services.AddHttpClient();
37
38
- if (builder.Environment.IsDevelopment())
39
- {
40
- builder.Services.AddAuthentication(defaultScheme: "TestScheme")
41
- .AddScheme<AuthenticationSchemeOptions, MockAuthHandler>(
42
- "TestScheme", options => { });
43
- }
44
- else
45
46
- builder.Services.AddMicrosoftIdentityWebApiAuthentication(builder.Configuration);
47
+ builder.Services.AddMicrosoftIdentityWebApiAuthentication(builder.Configuration);
48
49
builder.Services.AddClaimsTransformation();
50
builder.Services.AddPolicies();
0 commit comments