Skip to content

Commit

Permalink
Update ServiceExtension.cs
Browse files Browse the repository at this point in the history
fix webapi RequireHttpsMetadata local dev
  • Loading branch information
gitekDev committed Apr 26, 2024
1 parent 35cb3cf commit 99b92b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Casdoor.AspNetCore/ServiceExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public static AuthenticationBuilder AddCasdoorWebApi(this AuthenticationBuilder
{
options.Authority = casdoorOptions.Protocols.Authority;
options.Audience = casdoorOptions.Protocols.Audience;
options.RequireHttpsMetadata = casdoorOptions.RequireHttpsMetadata;
}
);
builder.AddJwtBearer(JwtBearerDefaults.AuthenticationScheme, JwtBearerDefaults.AuthenticationScheme, jwtBearerOptionAction);
Expand Down

0 comments on commit 99b92b6

Please sign in to comment.