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:
Thomas Darimont 2019-07-01 15:43:24 +02:00 committed by Marek Posolda
parent 8bd48391ca
commit 53d0db80c3

View file

@ -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);