Skip to content

Commit

Permalink
feat: fix webapi RequireHttpsMetadata for local dev (#95)
Browse files Browse the repository at this point in the history
fix webapi RequireHttpsMetadata local dev
  • Loading branch information
gitekDev authored Apr 27, 2024
1 parent 35cb3cf commit 325df99
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 325df99

Please sign in to comment.