Skip to content

Commit 5c6e318

Browse files
committed
feat: add pkce verifier
1 parent df5ffbf commit 5c6e318

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/src/oidc/oidcflow.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,10 @@ impl OidcFlow {
176176
}
177177
// Generate a PKCE challenge.
178178
let (pkce_challenge, pkce_verifier) = PkceCodeChallenge::new_random_sha256();
179-
let (auth_url, csrf_state, nonce) = authorize_url.url();
179+
let (auth_url, csrf_state, nonce) = authorize_url
180+
// Set the PKCE code challenge.
181+
.set_pkce_challenge(pkce_challenge)
182+
.url();
180183
Ok(OidcFlow {
181184
client,
182185
auth_url,

0 commit comments

Comments
 (0)