Skip to content

Commit

Permalink
send cookies along with keycloak.updateToken()
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcz committed Aug 26, 2016
1 parent 2a29f2a commit ec5289b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions adapters/oidc/js/src/main/resources/keycloak.js
Expand Up @@ -380,6 +380,7 @@
var req = new XMLHttpRequest();
req.open('POST', url, true);
req.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
req.withCredentials = true;

if (kc.clientId && kc.clientSecret) {
req.setRequestHeader('Authorization', 'Basic ' + btoa(kc.clientId + ':' + kc.clientSecret));
Expand Down

0 comments on commit ec5289b

Please sign in to comment.