@@ -27,11 +27,15 @@ public async Task ChallengeIncludesPkceIfRequested(bool include)
2727{
2828var options = new OpenIdConnectAuthenticationOptions ( )
2929{
30- Authority = "https://demo.identityserver.io " ,
30+ Authority = "https://authserver/ " ,
3131ClientId = "Test Client Id" ,
3232ClientSecret = "Test Client Secret" ,
3333UsePkce = include ,
34- ResponseType = OpenIdConnectResponseType . Code
34+ ResponseType = OpenIdConnectResponseType . Code ,
35+ Configuration = new OpenIdConnectConfiguration ( )
36+ {
37+ AuthorizationEndpoint = "https://authserver/auth"
38+ }
3539} ;
3640var server = CreateServer (
3741 app=> app . UseOpenIdConnectAuthentication ( options ) ,
@@ -67,11 +71,15 @@ public async Task ChallengeDoesNotIncludePkceForOtherResponseTypes(string respon
6771{
6872var options = new OpenIdConnectAuthenticationOptions ( )
6973{
70- Authority = "https://demo.identityserver.io " ,
74+ Authority = "https://authserver/ " ,
7175ClientId = "Test Client Id" ,
7276ClientSecret = "Test Client Secret" ,
7377UsePkce = true ,
74- ResponseType = responseType
78+ ResponseType = responseType ,
79+ Configuration = new OpenIdConnectConfiguration ( )
80+ {
81+ AuthorizationEndpoint = "https://authserver/auth"
82+ }
7583} ;
7684var server = CreateServer (
7785 app=> app . UseOpenIdConnectAuthentication ( options ) ,