mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-01 14:54:55 +00:00
51 lines
2.2 KiB
HTML
51 lines
2.2 KiB
HTML
|
|
<app-detail-layout [backRouterLink]="[ '/org']" [title]="'ORG.POLICY.LOGIN_POLICY.TITLECREATE' | translate"
|
||
|
|
[description]="'ORG.POLICY.LOGIN_POLICY.DESCRIPTIONCREATE' | translate">
|
||
|
|
<ng-container *ngIf="(['policy.delete'] | hasRole | async) && serviceType == PolicyComponentServiceType.MGMT">
|
||
|
|
<button matTooltip="{{'ORG.POLICY.DELETE' | translate}}" color="warn" (click)="deletePolicy()"
|
||
|
|
mat-stroked-button>
|
||
|
|
{{'ORG.POLICY.DELETE' | translate}}
|
||
|
|
</button>
|
||
|
|
</ng-container>
|
||
|
|
|
||
|
|
<div class="content" *ngIf="loginData">
|
||
|
|
<div class="row">
|
||
|
|
<span class="left-desc">{{'ORG.POLICY.DATA.ALLOWUSERNAMEPASSWORD' | translate}}</span>
|
||
|
|
<span class="fill-space"></span>
|
||
|
|
<mat-slide-toggle color="primary" name="hasNumber" ngDefaultControl
|
||
|
|
[(ngModel)]="loginData.allowUsernamePassword">
|
||
|
|
</mat-slide-toggle>
|
||
|
|
</div>
|
||
|
|
<div class="row">
|
||
|
|
<span class="left-desc">{{'ORG.POLICY.DATA.ALLOWREGISTER' | translate}}</span>
|
||
|
|
<span class="fill-space"></span>
|
||
|
|
<mat-slide-toggle color="primary" name="hasNumber" ngDefaultControl [(ngModel)]="loginData.allowRegister">
|
||
|
|
</mat-slide-toggle>
|
||
|
|
</div>
|
||
|
|
<div class="row">
|
||
|
|
<span class="left-desc">{{'ORG.POLICY.DATA.ALLOWEXTERNALIDP' | translate}}</span>
|
||
|
|
<span class="fill-space"></span>
|
||
|
|
<mat-slide-toggle color="primary" name="hasNumber" ngDefaultControl
|
||
|
|
[(ngModel)]="loginData.allowExternalIdp">
|
||
|
|
</mat-slide-toggle>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<p class="subheader">{{'LOGINPOLICY.IDPS' | translate}}</p>
|
||
|
|
|
||
|
|
<div class="idps">
|
||
|
|
<div class="idp" *ngFor="let idp of idps">
|
||
|
|
<mat-icon (click)="removeIdp(idp)" class="rm">remove_circle</mat-icon>
|
||
|
|
<p>{{idp.name}}</p>
|
||
|
|
<span>{{idp.type}}</span>
|
||
|
|
<span>{{idp.configId}}</span>
|
||
|
|
</div>
|
||
|
|
<div class="new-idp" (click)="openDialog()">
|
||
|
|
<mat-icon>add</mat-icon>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="btn-container">
|
||
|
|
<button (click)="savePolicy()" color="primary" type="submit"
|
||
|
|
mat-raised-button>{{ 'ACTIONS.SAVE' | translate }}</button>
|
||
|
|
</div>
|
||
|
|
</app-detail-layout>
|