fix(login): Removed login with username/password from prod builds
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
Bank-id
|
||||
</ui-link-button>
|
||||
</li>
|
||||
<li>
|
||||
<li *ngIf="passwordLoginActive">
|
||||
<ui-link-button
|
||||
class="login__button"
|
||||
uiSize="l"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
||||
import { environment } from '@msfa-environment';
|
||||
import { UiIconType } from '@ui/icon/icon-type.enum';
|
||||
import { UiIconSize } from '@ui/icon/icon-size.enum';
|
||||
import { UiIconType } from '@ui/icon/icon-type.enum';
|
||||
|
||||
@Component({
|
||||
selector: 'msfa-login',
|
||||
@@ -17,4 +17,5 @@ export class LoginComponent {
|
||||
mobileBankIdLink = `${this._baseLoginUrl}&acr_values=bankid-mobile`;
|
||||
bankIdLink = `${this._baseLoginUrl}&acr_values=bankid`;
|
||||
passwordLink = `${this._baseLoginUrl}&acr_values=password`;
|
||||
passwordLoginActive = environment.ciam.passwordLoginActive;
|
||||
}
|
||||
|
||||
@@ -4,4 +4,5 @@ export interface Ciam {
|
||||
logoutUrl: string;
|
||||
selfServiceUrl: string;
|
||||
refreshUrl: string;
|
||||
passwordLoginActive: boolean;
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ export const CIAM_TEST: Ciam = {
|
||||
logoutUrl: 'https://ciam-test.arbetsformedlingen.se:8443/uas/logout',
|
||||
selfServiceUrl: 'https://ciam-test.arbetsformedlingen.se:7443/eidm2/wf/self-service',
|
||||
refreshUrl: '/refreshToken',
|
||||
passwordLoginActive: true,
|
||||
};
|
||||
|
||||
export const CIAM_PROD: Ciam = {
|
||||
@@ -14,6 +15,7 @@ export const CIAM_PROD: Ciam = {
|
||||
logoutUrl: 'https://ciam.arbetsformedlingen.se/uas/logout',
|
||||
selfServiceUrl: 'https://ciam.arbetsformedlingen.se/eidm2/wf/self-service',
|
||||
refreshUrl: '/refreshToken',
|
||||
passwordLoginActive: false,
|
||||
};
|
||||
|
||||
export const CIAM_MOCK: Ciam = {
|
||||
@@ -22,4 +24,5 @@ export const CIAM_MOCK: Ciam = {
|
||||
logoutUrl: '/mock-login',
|
||||
selfServiceUrl: 'https://ciam-test.arbetsformedlingen.se:7443/eidm2/wf/self-service',
|
||||
refreshUrl: '/refreshToken',
|
||||
passwordLoginActive: true,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user