Mercurial > hg > thermostat-ng > web-client
changeset 179:8f116d9b0130
Change Keycloak JWT command channel query parameter to access_token
Reviewed-by: jerboaa
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-September/024856.html
author | Andrew Azores <aazores@redhat.com> |
---|---|
date | Wed, 06 Sep 2017 10:17:05 -0400 |
parents | 4c0492488b9c |
children | 53de35e22716 |
files | src/app/components/auth/keycloak-auth.service.js src/app/components/auth/keycloak-auth.service.spec.js |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/app/components/auth/keycloak-auth.service.js Fri Sep 01 14:17:02 2017 -0400 +++ b/src/app/components/auth/keycloak-auth.service.js Wed Sep 06 10:17:05 2017 -0400 @@ -72,7 +72,7 @@ getCommandChannelUrl (baseUrl) { let parsed = url.parse(baseUrl); - parsed.query = { token: this.keycloak.token }; + parsed.query = { access_token: this.keycloak.token }; return url.format(parsed); }
--- a/src/app/components/auth/keycloak-auth.service.spec.js Fri Sep 01 14:17:02 2017 -0400 +++ b/src/app/components/auth/keycloak-auth.service.spec.js Wed Sep 06 10:17:05 2017 -0400 @@ -126,7 +126,7 @@ describe('#getCommandChannelUrl()', () => { it('should add the Keycloak token to the query', () => { - keycloakAuthService.getCommandChannelUrl('http://example.com/').should.equal('http://example.com/?token=fakeToken'); + keycloakAuthService.getCommandChannelUrl('http://example.com/').should.equal('http://example.com/?access_token=fakeToken'); }); }); });