diff --git a/apps/docs/templates/oauth2-redirect.html b/apps/docs/templates/oauth2-redirect.html index 879e177b0..b732aab7a 100644 --- a/apps/docs/templates/oauth2-redirect.html +++ b/apps/docs/templates/oauth2-redirect.html @@ -32,6 +32,7 @@ let clientId = oauth2.auth.clientId let clientSecret = oauth2.auth.clientSecret; let redirectUri = oauth2.redirectUrl + let codeVerifier = oauth2.auth.codeVerifier // Convert client credentials to Base64 const credentials = btoa(`${clientId}:${clientSecret}`); @@ -44,6 +45,7 @@ }, body: new URLSearchParams({ code: code, + code_verifier: codeVerifier, grant_type: 'authorization_code', redirect_uri: redirectUri }) diff --git a/apps/docs/templates/openapi.html b/apps/docs/templates/openapi.html index 66adb7436..a8e6a4fe0 100755 --- a/apps/docs/templates/openapi.html +++ b/apps/docs/templates/openapi.html @@ -141,7 +141,8 @@ clientId: clientId, clientSecret: clientSecret, scopeSeparator: " ", - scopes: scopes + scopes: scopes, + usePkceWithAuthorizationCodeGrant: true }) }