From d3a2617d3c6d3c69b429d92747246a91f40a6b0b Mon Sep 17 00:00:00 2001 From: Jeroen Rosenberg Date: Fri, 16 May 2014 13:49:28 +0200 Subject: [PATCH] Read optional client secret configuration to ensure we can use Basic auth as well --- integration/js/src/main/resources/keycloak.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/integration/js/src/main/resources/keycloak.js b/integration/js/src/main/resources/keycloak.js index 1a6b545d2b..188c99d357 100755 --- a/integration/js/src/main/resources/keycloak.js +++ b/integration/js/src/main/resources/keycloak.js @@ -329,6 +329,7 @@ var Keycloak = function (config) { kc.authServerUrl = config['auth-server-url']; kc.realm = config['realm']; kc.clientId = config['resource']; + kc.clientSecret = (config['credentials'] || {})['secret']; promise.setSuccess(); } else { @@ -360,6 +361,7 @@ var Keycloak = function (config) { kc.authServerUrl = config.url; kc.realm = config.realm; kc.clientId = config.clientId; + kc.clientSecret = (config.credentials || {}).secret; promise.setSuccess(); }