diff --git a/tests/Microsoft.Owin.Security.Tests/OpenIdConnect/OpenIdConnectMiddlewareTests.cs b/tests/Microsoft.Owin.Security.Tests/OpenIdConnect/OpenIdConnectMiddlewareTests.cs index e93cd71e..2da5d496 100644 --- a/tests/Microsoft.Owin.Security.Tests/OpenIdConnect/OpenIdConnectMiddlewareTests.cs +++ b/tests/Microsoft.Owin.Security.Tests/OpenIdConnect/OpenIdConnectMiddlewareTests.cs @@ -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), @@ -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),