Skip to content

Commit

Permalink
Dev UI: Fix GraphQL Link in OIDC
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Kruger <[email protected]>
  • Loading branch information
phillip-kruger committed Jun 14, 2023
1 parent 50498da commit 6563ae6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class OidcPropertiesState extends LitState {
hideImplicitLoggedIn: false,
hideImplLoggedOut: false,
swaggerUiPath: null,
graphQlUiPath: null,
graphqlUiPath: null,
oidcProviderName: null,
oidcApplicationType: null,
oidcGrantType: null,
Expand Down Expand Up @@ -83,7 +83,7 @@ class OidcPropertiesState extends LitState {
propertiesState.keycloakAdminUrl = response.result.keycloakAdminUrl;
propertiesState.keycloakRealms = response.result.keycloakRealms;
propertiesState.swaggerUiPath = response.result.swaggerUiPath;
propertiesState.graphQlUiPath = response.result.graphQlUiPath;
propertiesState.graphqlUiPath = response.result.graphqlUiPath;

return {
// logout === true will trigger query params removal
Expand Down Expand Up @@ -1103,7 +1103,7 @@ export class QwcOidcProvider extends QwcHotReloadElement {
}

static _navigateToGraphQLUiWithToken(token) {
let url = propertiesState.graphQlUiPath;
let url = propertiesState.graphqlUiPath;
const headerJson = '{"authorization": "Bearer ' + token + '"}';
url += '/?' + encodeURIComponent('headers') + '=' + encodeURIComponent(headerJson);
window.open(url, '_blank').focus();
Expand Down

0 comments on commit 6563ae6

Please sign in to comment.