diff --git a/src/portal/e2e/app.e2e-spec.ts b/src/portal/e2e/app.e2e-spec.ts index 02388c458..a924625cb 100644 --- a/src/portal/e2e/app.e2e-spec.ts +++ b/src/portal/e2e/app.e2e-spec.ts @@ -25,6 +25,8 @@ fdescribe('harbor-portal app', function () { it('should display: ' + expectedMsg, () => { page.navigateTo(); - expect(page.getParagraphText()).toEqual(expectedMsg) + page.getParagraphText().then(res => { + expect(res).toEqual(expectedMsg); + }); }); }); diff --git a/src/portal/lib/src/config/config.ts b/src/portal/lib/src/config/config.ts index 2872e1084..0c5c78463 100644 --- a/src/portal/lib/src/config/config.ts +++ b/src/portal/lib/src/config/config.ts @@ -91,7 +91,12 @@ export class Configuration { http_authproxy_endpoint?: StringValueItem; http_authproxy_skip_cert_verify?: BoolValueItem; http_authproxy_always_onboard?: BoolValueItem; - + oidc_name?: StringValueItem; + oidc_endpoint?: StringValueItem; + oidc_client_id?: StringValueItem; + oidc_client_secret?: StringValueItem; + oidc_skip_cert_verify?: BoolValueItem; + oidc_scope?: StringValueItem; public constructor() { this.auth_mode = new StringValueItem("db_auth", true); this.project_creation_restriction = new StringValueItem("everyone", true); @@ -136,5 +141,11 @@ export class Configuration { this.http_authproxy_endpoint = new StringValueItem("", true); this.http_authproxy_skip_cert_verify = new BoolValueItem(false, true); this.http_authproxy_always_onboard = new BoolValueItem(false, true); + this.oidc_name = new StringValueItem('', true); + this.oidc_endpoint = new StringValueItem('', true); + this.oidc_client_id = new StringValueItem('', true); + this.oidc_client_secret = new StringValueItem('', true); + this.oidc_skip_cert_verify = new BoolValueItem(false, true); + this.oidc_scope = new StringValueItem('', true); } } diff --git a/src/portal/src/app/config/auth/config-auth.component.html b/src/portal/src/app/config/auth/config-auth.component.html index 17492c2f8..665e1d5e7 100644 --- a/src/portal/src/app/config/auth/config-auth.component.html +++ b/src/portal/src/app/config/auth/config-auth.component.html @@ -9,10 +9,12 @@ {{'CONFIG.AUTH_MODE_LDAP' | translate }} {{'CONFIG.AUTH_MODE_UAA' | translate }} {{'CONFIG.AUTH_MODE_HTTP' | translate }} + {{'CONFIG.AUTH_MODE_OIDC' | translate }} - + {{'CONFIG.TOOLTIP.AUTH_MODE' | translate}} @@ -201,7 +203,8 @@