diff --git a/projects/frontend/data-pipelines/gui/projects/ui/src/app/app-config.model.ts b/projects/frontend/data-pipelines/gui/projects/ui/src/app/app-config.model.ts index ff6db19002..34cb7f9cf3 100644 --- a/projects/frontend/data-pipelines/gui/projects/ui/src/app/app-config.model.ts +++ b/projects/frontend/data-pipelines/gui/projects/ui/src/app/app-config.model.ts @@ -10,13 +10,14 @@ export interface AppConfig { } export interface Auth { + skipAuth?: false; + // Used for producing the AuthConfig.customQueryParams mapping for `orgLink` and `targetUri` consoleCloudUrl?: string; orgLinkRoot?: string; // $window.location.origin is replaced with the corresponding value dynamically upon loading, // see AppConfigService authConfig?: AuthConfig; - resourceServer?: OAuthResourceServerConfig; // Used for token auto-refresh capability, in case a token is about to expire. refreshTokenConfig?: RefreshTokenConfig; diff --git a/projects/frontend/data-pipelines/gui/projects/ui/src/app/app-config.service.ts b/projects/frontend/data-pipelines/gui/projects/ui/src/app/app-config.service.ts index 2f77e12a21..f716b68bf2 100644 --- a/projects/frontend/data-pipelines/gui/projects/ui/src/app/app-config.service.ts +++ b/projects/frontend/data-pipelines/gui/projects/ui/src/app/app-config.service.ts @@ -30,7 +30,12 @@ export class AppConfigService { return this.appConfig; } + getSkipAuth(): boolean { + return this.appConfig.auth.skipAuth; + } + getAuthCodeFlowConfig(): AuthConfig { + if (this.getSkipAuth()) return new AuthConfig(); const replaceWindowLocationOrigin = (str: string): string => { return str?.replace('$window.location.origin', window.location.origin); }; @@ -42,6 +47,7 @@ export class AppConfigService { } getRefreshTokenConfig(): RefreshTokenConfig { + if (this.getSkipAuth()) return null; return this.getConfig()?.auth.refreshTokenConfig; } } diff --git a/projects/frontend/data-pipelines/gui/projects/ui/src/app/app.component.html b/projects/frontend/data-pipelines/gui/projects/ui/src/app/app.component.html index fb31bdd180..21ec3a466c 100644 --- a/projects/frontend/data-pipelines/gui/projects/ui/src/app/app.component.html +++ b/projects/frontend/data-pipelines/gui/projects/ui/src/app/app.component.html @@ -3,8 +3,10 @@ ~ SPDX-License-Identifier: Apache-2.0 --> - - + +
-
+