File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ function getAuthZArgs(r) {
259
259
260
260
authZArgs += "&code_challenge_method=S256&code_challenge=" + pkce_code_challenge + "&state=" + r . variables . pkce_id ;
261
261
} else {
262
- authZArgs += "&state=0" ;
262
+ authZArgs += "&state=" + r . variables . state ;
263
263
}
264
264
return authZArgs ;
265
265
}
@@ -272,4 +272,4 @@ function idpClientAuth(r) {
272
272
} else {
273
273
return "code=" + r . variables . arg_code + "&client_secret=" + r . variables . oidc_client_secret ;
274
274
}
275
- }
275
+ }
Original file line number Diff line number Diff line change @@ -43,6 +43,11 @@ map $host $oidc_hmac_key {
43
43
default "ChangeMe" ;
44
44
}
45
45
46
+ map $host $state {
47
+ # Unable to use this state if PKCE is enabled
48
+ default 0 ;
49
+ }
50
+
46
51
map $proto $oidc_cookie_flags {
47
52
http "Path=/; SameSite=lax;" ; # For HTTP/plaintext testing
48
53
https "Path=/; SameSite=lax; HttpOnly; Secure;" ; # Production recommendation
You can’t perform that action at this time.
0 commit comments