@@ -27,11 +27,15 @@ public async Task ChallengeIncludesPkceIfRequested(bool include)
27
27
{
28
28
var options = new OpenIdConnectAuthenticationOptions ( )
29
29
{
30
- Authority = "https://demo.identityserver.io " ,
30
+ Authority = "https://authserver/ " ,
31
31
ClientId = "Test Client Id" ,
32
32
ClientSecret = "Test Client Secret" ,
33
33
UsePkce = include ,
34
- ResponseType = OpenIdConnectResponseType . Code
34
+ ResponseType = OpenIdConnectResponseType . Code ,
35
+ Configuration = new OpenIdConnectConfiguration ( )
36
+ {
37
+ AuthorizationEndpoint = "https://authserver/auth"
38
+ }
35
39
} ;
36
40
var server = CreateServer (
37
41
app => app . UseOpenIdConnectAuthentication ( options ) ,
@@ -67,11 +71,15 @@ public async Task ChallengeDoesNotIncludePkceForOtherResponseTypes(string respon
67
71
{
68
72
var options = new OpenIdConnectAuthenticationOptions ( )
69
73
{
70
- Authority = "https://demo.identityserver.io " ,
74
+ Authority = "https://authserver/ " ,
71
75
ClientId = "Test Client Id" ,
72
76
ClientSecret = "Test Client Secret" ,
73
77
UsePkce = true ,
74
- ResponseType = responseType
78
+ ResponseType = responseType ,
79
+ Configuration = new OpenIdConnectConfiguration ( )
80
+ {
81
+ AuthorizationEndpoint = "https://authserver/auth"
82
+ }
75
83
} ;
76
84
var server = CreateServer (
77
85
app => app . UseOpenIdConnectAuthentication ( options ) ,
0 commit comments