KEYCLOAK-10313 Only use PKCE if enable-pkce is configured for KeycloakInstalled adapter
Users who want to use PKCE support with the KeycloakInstalled adapter need to set the property ``"enable-pkce": true` in the adapter configuration / `keycloak.json`.
This commit is contained in:
parent
8bd48391ca
commit
53d0db80c3
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ public class KeycloakInstalled {
|
|||
|
||||
String redirectUri = "http://localhost:" + callback.server.getLocalPort();
|
||||
String state = UUID.randomUUID().toString();
|
||||
Pkce pkce = generatePkce();
|
||||
Pkce pkce = deployment.isPkce() ? generatePkce() : null;
|
||||
|
||||
String authUrl = createAuthUrl(redirectUri, state, pkce);
|
||||
|
||||
|
|
Loading…
Reference in a new issue