Updated js lib to use 'secret' instead of 'password'
This commit is contained in:
parent
e28e1d8b00
commit
a130120014
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ var Keycloak = function (options) {
|
||||||
var prompt = window.oauth.prompt;
|
var prompt = window.oauth.prompt;
|
||||||
|
|
||||||
if (code) {
|
if (code) {
|
||||||
var params = 'code=' + code + '&client_id=' + encodeURIComponent(options.clientId) + '&password=' + encodeURIComponent(options.clientSecret);
|
var params = 'code=' + code + '&client_id=' + encodeURIComponent(options.clientId) + '&secret=' + encodeURIComponent(options.clientSecret);
|
||||||
var url = getRealmUrl() + '/tokens/access/codes';
|
var url = getRealmUrl() + '/tokens/access/codes';
|
||||||
|
|
||||||
var req = new XMLHttpRequest();
|
var req = new XMLHttpRequest();
|
||||||
|
|
Loading…
Reference in a new issue