From 39f846aecb3eb8b1351f2eb143135d15146d96e8 Mon Sep 17 00:00:00 2001 From: Etienne Date: Fri, 22 Nov 2019 11:56:09 +0100 Subject: [PATCH] Update javascript-adapter.adoc The `pkceMethod` option has to be configured in the `init` method and not the `constructor` (see https://github.com/keycloak/keycloak/blob/master/adapters/oidc/js/src/main/resources/keycloak.js#L160) --- securing_apps/topics/oidc/javascript-adapter.adoc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/securing_apps/topics/oidc/javascript-adapter.adoc b/securing_apps/topics/oidc/javascript-adapter.adoc index fa5598a470..5e321c79fa 100644 --- a/securing_apps/topics/oidc/javascript-adapter.adoc +++ b/securing_apps/topics/oidc/javascript-adapter.adoc @@ -355,11 +355,6 @@ adapter:: responseType:: Response type sent to {project_name} with login requests. This is determined based on the flow value used during initialization, but can be overridden by setting this value. -pkceMethod:: - The method for Proof Key Code Exchange (https://tools.ietf.org/html/rfc7636[PKCE]) to use. Configuring this value enables the PKCE mechanism. - Available options: - * "S256" - The SHA256 based PKCE method - ===== Methods ====== init(options) @@ -381,6 +376,8 @@ Options is an Object, where: * flow - Set the OpenID Connect flow. Valid values are standard, implicit or hybrid. * promiseType - If set to `native` all methods returning a promise will return a native JavaScript promise. If not set will return Keycloak specific promise objects. * enableLogging - Enables logging messages from Keycloak to the console (default is false). +* pkceMethod - The method for Proof Key Code Exchange (https://tools.ietf.org/html/rfc7636[PKCE]) to use. Configuring this value enables the PKCE mechanism. Available options: + - "S256" - The SHA256 based PKCE method Returns a promise that resolves when initialization completes.