tokens/access/codes now uses basic auth
This commit is contained in:
1 parent
00043423c2
commit
6794166b58
6 files changed
+83
-25
No files matched your search
Regular → Executable
+2
-2
@@ -111,11 +111,11 @@ var Keycloak = function (options) {
|
||||
var prompt = window.oauth.prompt;
|
||||
|
||||
if (code) {
|
||||
var params = 'code=' + code + '&client_id=' + encodeURIComponent(options.clientId) + '&secret=' + encodeURIComponent(options.clientSecret);
|
||||
var params = 'code=' + code;
|
||||
var url = getRealmUrl() + '/tokens/access/codes';
|
||||
|
||||
var req = new XMLHttpRequest();
|
||||
req.open('POST', url, true);
|
||||
req.open('POST', url, true, options.clientId, options.clientSecret);
|
||||
req.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
|
||||
|
||||
req.onreadystatechange = function () {
|
||||
|
||||
Reference in new issue
Block a user