Updated js lib to use 'secret' instead of 'password'

This commit is contained in:
Stian Thorgersen 2014-02-18 16:27:31 +00:00
parent e28e1d8b00
commit a130120014

View file

@ -111,7 +111,7 @@ var Keycloak = function (options) {
var prompt = window.oauth.prompt;
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 req = new XMLHttpRequest();