How to use the @harbor/ui.CONFIG_AUTH_MODE.LDAP_AUTH function in @harbor/ui

To help you get started, we’ve selected a few @harbor/ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github goharbor / harbor / src / portal / src / app / app-config.service.ts View on Github external
public isLdapMode(): boolean {
        return this.configurations && this.configurations.auth_mode === CONFIG_AUTH_MODE.LDAP_AUTH;
    }
    public isHttpAuthMode(): boolean {
github goharbor / harbor / src / portal / src / app / config / auth / config-auth.component.ts View on Github external
public get showSelfReg(): boolean {
        if (!this.currentConfig || !this.currentConfig.auth_mode) {
            return true;
        } else {
            return this.currentConfig.auth_mode.value !== CONFIG_AUTH_MODE.LDAP_AUTH
                && this.currentConfig.auth_mode.value !== CONFIG_AUTH_MODE.UAA_AUTH
                && this.currentConfig.auth_mode.value !== CONFIG_AUTH_MODE.HTTP_AUTH
                && this.currentConfig.auth_mode.value !== CONFIG_AUTH_MODE.OIDC_AUTH;
        }
    }