Skip to content

Commit 041334c

Browse files
authored
add verifier handling (#1263)
1 parent c9c6b03 commit 041334c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

apps/docs/templates/oauth2-redirect.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
let clientId = oauth2.auth.clientId
3333
let clientSecret = oauth2.auth.clientSecret;
3434
let redirectUri = oauth2.redirectUrl
35+
let codeVerifier = oauth2.auth.codeVerifier
3536

3637
// Convert client credentials to Base64
3738
const credentials = btoa(`${clientId}:${clientSecret}`);
@@ -44,6 +45,7 @@
4445
},
4546
body: new URLSearchParams({
4647
code: code,
48+
code_verifier: codeVerifier,
4749
grant_type: 'authorization_code',
4850
redirect_uri: redirectUri
4951
})

apps/docs/templates/openapi.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@
141141
clientId: clientId,
142142
clientSecret: clientSecret,
143143
scopeSeparator: " ",
144-
scopes: scopes
144+
scopes: scopes,
145+
usePkceWithAuthorizationCodeGrant: true
145146
})
146147
}
147148

0 commit comments

Comments
 (0)