Skip to content

Commit

Permalink
Fix Keycloak token address in OIDC DevUI script
Browse files Browse the repository at this point in the history
  • Loading branch information
sberyozkin committed Jul 26, 2023
1 parent cf8906f commit 7a703c8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ export class QwcOidcProvider extends QwcHotReloadElement {
let address;
let state;
if (propertiesState.keycloakAdminUrl && propertiesState.keycloakRealms?.length > 0) {
address = this._getKeycloakTokenUrl();
address = this._getKeycloakAuthorizationUrl();
state = QwcOidcProvider._makeId() + "_" + this._selectedRealm + "_" + clientId;
} else {
address = propertiesState.authorizationUrl ?? '';
Expand Down Expand Up @@ -1225,6 +1225,10 @@ export class QwcOidcProvider extends QwcHotReloadElement {
}

_getKeycloakTokenUrl() {
return propertiesState.keycloakAdminUrl + "/realms/" + this._selectedRealm + "/protocol/openid-connect/token";
}

_getKeycloakAuthorizationUrl() {
return propertiesState.keycloakAdminUrl + "/realms/" + this._selectedRealm + "/protocol/openid-connect/auth";
}
}
Expand Down

0 comments on commit 7a703c8

Please sign in to comment.