mirror of
https://github.com/zitadel/zitadel.git
synced 2025-02-25 18:55:27 -06:00
* fix: add prompt on oidc rp * fix: add prompt on oidc rp * fix: translation * fix: translation * fix: not existing login policy * fix: login policy * fix: identity provider detail * fix: idp update * fix: idps in login policy * fix: lint * fix: scss * fix: external idps on auth user detail * fix: idp create mapping fields * fix: remove idp provider * fix: angular lint * fix: login policy view * fix: translations
92 lines
4.5 KiB
HTML
92 lines
4.5 KiB
HTML
<app-detail-layout [backRouterLink]="backroutes" [title]="'IDP.DETAIL.TITLE' | translate"
|
|
[description]="'IDP.DETAIL.DESCRIPTION' | translate">
|
|
<div class="container">
|
|
<form (ngSubmit)="updateIdp()">
|
|
<ng-container [formGroup]="idpForm">
|
|
<div class="content">
|
|
<mat-form-field appearance="outline" class="formfield">
|
|
<mat-label>{{ 'IDP.ID' | translate }}</mat-label>
|
|
<input matInput formControlName="id" />
|
|
</mat-form-field>
|
|
<mat-form-field appearance="outline" class="formfield">
|
|
<mat-label>{{ 'IDP.NAME' | translate }}</mat-label>
|
|
<input matInput formControlName="name" />
|
|
</mat-form-field>
|
|
<!--<mat-form-field appearance="outline" class="formfield">
|
|
<mat-label>{{ 'IDP.LOGOSRC' | translate }}</mat-label>
|
|
<input matInput formControlName="logoSrc" />
|
|
</mat-form-field>-->
|
|
</div>
|
|
</ng-container>
|
|
|
|
<button color="primary" mat-raised-button class="continue-button" [disabled]="idpForm.invalid" type="submit">
|
|
{{ 'ACTIONS.SAVE' | translate }}
|
|
</button>
|
|
</form>
|
|
|
|
<h2 *ngIf="oidcConfigForm">{{'IDP.DETAIL.OIDC.TITLE' | translate}}</h2>
|
|
|
|
<form (ngSubmit)="updateOidcConfig()" *ngIf="oidcConfigForm">
|
|
<ng-container [formGroup]="oidcConfigForm">
|
|
<div class="content">
|
|
<mat-form-field appearance="outline" class="formfield">
|
|
<mat-label>{{ 'IDP.ISSUER' | translate }}</mat-label>
|
|
<input matInput formControlName="issuer" />
|
|
</mat-form-field>
|
|
</div>
|
|
<div class="content">
|
|
<mat-form-field appearance="outline" class="formfield">
|
|
<mat-label>{{ 'IDP.CLIENTID' | translate }}</mat-label>
|
|
<input matInput formControlName="clientId" />
|
|
</mat-form-field>
|
|
</div>
|
|
<div class="content">
|
|
<mat-checkbox class="desc" [(ngModel)]="showIdSecretSection" [ngModelOptions]="{standalone: true}">
|
|
Update Client Secret
|
|
</mat-checkbox>
|
|
<mat-form-field appearance="outline" class="formfield" *ngIf="showIdSecretSection">
|
|
<mat-label>{{ 'IDP.CLIENTSECRET' | translate }}</mat-label>
|
|
<input matInput formControlName="clientSecret" />
|
|
</mat-form-field>
|
|
</div>
|
|
<div class="content">
|
|
<mat-form-field appearance="outline" class="formfield">
|
|
<mat-label>{{ 'IDP.SCOPESLIST' | translate }}</mat-label>
|
|
<mat-chip-list #chipScopesList aria-label="scope selection" >
|
|
<mat-chip class="chip" *ngFor="let scope of scopesList?.value" selectable="false" removable
|
|
(removed)="removeScope(scope)">
|
|
{{scope}} <mat-icon matChipRemove>cancel</mat-icon>
|
|
</mat-chip>
|
|
<input [matChipInputFor]="chipScopesList" [matChipInputSeparatorKeyCodes]="separatorKeysCodes"
|
|
[matChipInputAddOnBlur]="true" (matChipInputTokenEnd)="addScope($event)">
|
|
</mat-chip-list>
|
|
</mat-form-field>
|
|
</div>
|
|
<div class="content">
|
|
<mat-form-field class="formfield" appearance="outline">
|
|
<mat-label>{{ 'IDP.IDPDISPLAYNAMMAPPING' | translate }}</mat-label>
|
|
<mat-select formControlName="idpDisplayNameMapping">
|
|
<mat-option *ngFor="let field of mappingFields" [value]="field">
|
|
{{ 'IDP.MAPPINTFIELD.'+field | translate }}
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
<mat-form-field class="formfield" appearance="outline">
|
|
<mat-label>{{ 'IDP.USERNAMEMAPPING' | translate }}</mat-label>
|
|
<mat-select formControlName="usernameMapping">
|
|
<mat-option *ngFor="let field of mappingFields" [value]="field">
|
|
{{ 'IDP.MAPPINTFIELD.'+field | translate }}
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
</div>
|
|
</ng-container>
|
|
|
|
<button color="primary" mat-raised-button class="continue-button" [disabled]="oidcConfigForm.invalid" type="submit">
|
|
{{ 'ACTIONS.SAVE' | translate }}
|
|
</button>
|
|
</form>
|
|
</div>
|
|
|
|
</app-detail-layout>
|