Skip to content

Commit

Permalink
Avoid downloading OIDC config
Browse files Browse the repository at this point in the history
  • Loading branch information
Tratcher committed Mar 29, 2022
1 parent 3b52f6b commit 05afae7
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ public async Task ChallengeIncludesPkceIfRequested(bool include)
{
var options = new OpenIdConnectAuthenticationOptions()
{
Authority = "https://demo.identityserver.io",
Authority = "https://authserver/",
ClientId = "Test Client Id",
ClientSecret = "Test Client Secret",
UsePkce = include,
ResponseType = OpenIdConnectResponseType.Code
ResponseType = OpenIdConnectResponseType.Code,
Configuration = new OpenIdConnectConfiguration()
{
AuthorizationEndpoint = "https://authserver/auth"
}
};
var server = CreateServer(
app => app.UseOpenIdConnectAuthentication(options),
Expand Down Expand Up @@ -67,11 +71,15 @@ public async Task ChallengeDoesNotIncludePkceForOtherResponseTypes(string respon
{
var options = new OpenIdConnectAuthenticationOptions()
{
Authority = "https://demo.identityserver.io",
Authority = "https://authserver/",
ClientId = "Test Client Id",
ClientSecret = "Test Client Secret",
UsePkce = true,
ResponseType = responseType
ResponseType = responseType,
Configuration = new OpenIdConnectConfiguration()
{
AuthorizationEndpoint = "https://authserver/auth"
}
};
var server = CreateServer(
app => app.UseOpenIdConnectAuthentication(options),
Expand Down

0 comments on commit 05afae7

Please sign in to comment.