mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-04 13:22:16 +00:00
# Which Problems Are Solved This pr updates major and minor dependencies and is the first step on getting our dependabot alerts cut down. # How the Problems Are Solved Depedency updates across the board eg: - Upgrade Angular to v21 - Upgrade next.js to v16.2 - Upgrade tailwind to v4 in the login - Upgrade vitest to v4 in the login This is an uncompleted list refer to the changed files for a full overview of all the updates. # Additional Changes Migrated all control flow in the console to the modern control flow syntax. Fixed the dependsOn setting for the @zitadel/login:test-unit nx target. # Additional Context - Closes https://github.com/zitadel/zitadel/issues/11274 --------- Co-authored-by: Max Peintner <[email protected]>
147 lines
5.9 KiB
HTML
147 lines
5.9 KiB
HTML
<cnsl-create-layout
|
|
title="{{ id ? ('IDP.DETAIL.TITLE' | translate) : ('IDP.CREATE.TITLE' | translate) }}"
|
|
(closed)="close()"
|
|
>
|
|
<div class="identity-provider-create-content">
|
|
<div class="identity-provider-title-row">
|
|
<img class="idp-logo" src="./assets/images/idp/ms.svg" alt="microsoft" />
|
|
<h1>{{ 'IDP.CREATE.AZUREAD.TITLE' | translate }}</h1>
|
|
@if (exists$ | async) {
|
|
@if ({ isNotActive: (activateLink$ | async) }; as idp) {
|
|
<div
|
|
class="cnsl-state-dot"
|
|
[matTooltip]="(idp.isNotActive ? 'IDP.STATES.2' : 'IDP.STATES.1') | translate"
|
|
[ngClass]="{ active: !idp.isNotActive, inactive: !!idp.isNotActive }"
|
|
></div>
|
|
}
|
|
}
|
|
@if (loading) {
|
|
<mat-spinner diameter="25" color="primary"></mat-spinner>
|
|
}
|
|
</div>
|
|
|
|
<cnsl-provider-next
|
|
[configureProvider]="(justCreated$ | async) === ''"
|
|
[configureTitle]="'DESCRIPTIONS.SETTINGS.IDPS.CALLBACK.TITLE' | translate: { provider: 'Microsoft' }"
|
|
[configureDescription]="'DESCRIPTIONS.SETTINGS.IDPS.CALLBACK.DESCRIPTION' | translate: { provider: 'Microsoft' }"
|
|
configureLink="https://zitadel.com/docs/guides/integrate/identity-providers/azure-ad-oidc#entra-id-configuration"
|
|
[autofillLink]="autofillLink$ | async"
|
|
[activateLink]="activateLink$ | async"
|
|
[copyUrls]="copyUrls$ | async"
|
|
[expanded]="!!(expandWhatNow$ | async)"
|
|
(activate)="activate()"
|
|
></cnsl-provider-next>
|
|
|
|
<p class="identity-provider-desc cnsl-secondary-text">
|
|
{{ !provider ? ('IDP.CREATE.AZUREAD.DESCRIPTION' | translate) : ('IDP.DETAIL.DESCRIPTION' | translate) }}
|
|
</p>
|
|
|
|
<form [formGroup]="form" (ngSubmit)="submitForm()">
|
|
<div class="identity-provider-content">
|
|
<cnsl-form-field class="formfield">
|
|
<cnsl-label>{{ 'IDP.NAME' | translate }}</cnsl-label>
|
|
<input cnslInput formControlName="name" />
|
|
</cnsl-form-field>
|
|
|
|
<cnsl-form-field class="formfield">
|
|
<cnsl-label>{{ 'IDP.CLIENTID' | translate }}</cnsl-label>
|
|
<input cnslInput formControlName="clientId" />
|
|
</cnsl-form-field>
|
|
|
|
@if (provider) {
|
|
<mat-checkbox
|
|
class="update-secret-checkbox"
|
|
[(ngModel)]="updateClientSecret"
|
|
[ngModelOptions]="{ standalone: true }"
|
|
>{{ 'IDP.UPDATECLIENTSECRET' | translate }}</mat-checkbox
|
|
>
|
|
}
|
|
|
|
@if (!provider || (provider && updateClientSecret)) {
|
|
<cnsl-form-field class="formfield">
|
|
<cnsl-label>{{ 'IDP.CLIENTSECRET' | translate }}</cnsl-label>
|
|
<input cnslInput formControlName="clientSecret" />
|
|
</cnsl-form-field>
|
|
}
|
|
|
|
<div class="identity-provider-optional-h-wrapper">
|
|
<h2>{{ 'IDP.OPTIONAL' | translate }}</h2>
|
|
<button (click)="showOptional = !showOptional" type="button" mat-icon-button>
|
|
@if (showOptional) {
|
|
<mat-icon>keyboard_arrow_up</mat-icon>
|
|
}
|
|
@if (!showOptional) {
|
|
<mat-icon>keyboard_arrow_down</mat-icon>
|
|
}
|
|
</button>
|
|
</div>
|
|
@if (showOptional) {
|
|
<div>
|
|
<div class="idp-scopes">
|
|
<div class="flex-line">
|
|
<cnsl-form-field class="formfield">
|
|
<cnsl-label>{{ 'IDP.SCOPESLIST' | translate }}</cnsl-label>
|
|
<input
|
|
cnslInput
|
|
[matChipInputFor]="chipScopesList"
|
|
[matChipInputSeparatorKeyCodes]="separatorKeysCodes"
|
|
[matChipInputAddOnBlur]="true"
|
|
(matChipInputTokenEnd)="addScope($event)"
|
|
/>
|
|
</cnsl-form-field>
|
|
<button class="scope-add-button" (click)="addScope($any($event))" mat-icon-button>
|
|
<mat-icon>add</mat-icon>
|
|
</button>
|
|
</div>
|
|
<cnsl-form-field class="formfield">
|
|
<mat-chip-grid #chipScopesList aria-label="scope selection">
|
|
@for (scope of scopesList?.value; track scope) {
|
|
<mat-chip-row class="chip" removable (removed)="removeScope(scope)">
|
|
{{ scope }} <mat-icon matChipRemove>cancel</mat-icon>
|
|
</mat-chip-row>
|
|
}
|
|
</mat-chip-grid>
|
|
</cnsl-form-field>
|
|
</div>
|
|
<mat-checkbox formControlName="emailVerified">{{ 'IDP.EMAILVERIFIED' | translate }}</mat-checkbox>
|
|
<cnsl-form-field class="formfield">
|
|
<cnsl-label>{{ 'IDP.AZUREADTENANTTYPE' | translate }}</cnsl-label>
|
|
<mat-select formControlName="tenantType">
|
|
@for (type of tenantTypes; track type) {
|
|
<mat-option [value]="type">
|
|
{{ 'IDP.AZUREADTENANTTYPES.' + type | translate }}
|
|
</mat-option>
|
|
}
|
|
</mat-select>
|
|
</cnsl-form-field>
|
|
@if (tenantType?.value === AzureTenantIDType) {
|
|
<cnsl-form-field class="formfield">
|
|
<cnsl-label>{{ 'IDP.AZUREADTENANTID' | translate }}</cnsl-label>
|
|
<input cnslInput formControlName="tenantId" />
|
|
</cnsl-form-field>
|
|
}
|
|
<cnsl-provider-options
|
|
[initialOptions]="provider?.config?.options"
|
|
(optionsChanged)="options = $event"
|
|
></cnsl-provider-options>
|
|
</div>
|
|
}
|
|
</div>
|
|
|
|
<div class="identity-provider-create-actions">
|
|
<button
|
|
color="primary"
|
|
mat-raised-button
|
|
class="continue-button"
|
|
[disabled]="form.invalid || form.disabled"
|
|
type="submit"
|
|
>
|
|
@if ({ exists: (exists$ | async) }; as idp) {
|
|
<span>{{ (!!idp.exists ? 'ACTIONS.SAVE' : 'ACTIONS.CREATE') | translate }}</span>
|
|
}
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</cnsl-create-layout>
|