mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-24 05:38:46 +00:00
feat(console): guide users when configuring IDPs (#7572)
* feat(console): show external idp remote config * reuse copy-row * finish google and saml sp * finish apps * add next steps modal * rollout * activate * fix saml urls * fix saml provider * complete providers * translate * update google docs * update entra id oidc docs * update entra id saml docs * update github docs * update gitlab docs * update apple docs * update okta oidc docs * update okta saml docs * update keycloak docs * update mocksaml * cleanup * lint * lint * fix overriden classes * encapsulate styles * fix icon classes --------- Co-authored-by: peintnermax <[email protected]>
This commit is contained in:
co-authored by
peintnermax
parent
84644214d7
commit
d26391a642
@@ -420,116 +420,52 @@
|
||||
</div>
|
||||
</cnsl-card>
|
||||
</ng-container>
|
||||
|
||||
<ng-container *ngIf="currentSetting === 'urls' && !app?.samlConfig">
|
||||
<cnsl-card title=" {{ 'APP.URLS' | translate }}" *ngIf="environmentMap$ | async as environmentMap">
|
||||
<cnsl-info-section *ngIf="environmentMap.issuer">
|
||||
<ng-container *ngIf="currentSetting === 'urls'">
|
||||
<cnsl-card title=" {{ 'APP.URLS' | translate }}">
|
||||
<cnsl-info-section *ngIf="(apiMap$ | async)?.issuer as issuer">
|
||||
<div
|
||||
class="link"
|
||||
[innerHtml]="
|
||||
'APP.OIDC.WELLKNOWN' | translate: { url: environmentMap['issuer'] + '/.well-known/openid-configuration' }
|
||||
"
|
||||
[innerHtml]="'APP.OIDC.WELLKNOWN' | translate: { url: issuer + '/.well-known/openid-configuration' }"
|
||||
></div>
|
||||
</cnsl-info-section>
|
||||
|
||||
<div class="app-info-row">
|
||||
<div class="app-info-wrapper" *ngFor="let environmentV of environmentMap | keyvalue">
|
||||
<p class="app-info-row-title cnsl-secondary-text">{{ environmentV.key }}</p>
|
||||
<div class="app-copy-row">
|
||||
<div *ngIf="environmentV.value" class="environment">
|
||||
<button
|
||||
[disabled]="copied === environmentV.value"
|
||||
[matTooltip]="(copied !== environmentV.value ? 'ACTIONS.COPY' : 'ACTIONS.COPIED') | translate"
|
||||
cnslCopyToClipboard
|
||||
[valueToCopy]="environmentV.value"
|
||||
(copiedValue)="copied = environmentV.key"
|
||||
>
|
||||
{{ environmentV.value }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="app-info-row">
|
||||
<div class="app-info-wrapper" *ngFor="let wellKnownV of wellKnownMap$ | async | keyvalue">
|
||||
<ng-container *ngIf="wellKnownV.key.endsWith('endpoint') || wellKnownV.key.toString() === 'jwks_uri'">
|
||||
<p class="app-info-row-title cnsl-secondary-text">{{ wellKnownV.key }}</p>
|
||||
<div class="app-copy-row">
|
||||
<div *ngIf="wellKnownV.value" class="environment">
|
||||
<button
|
||||
[disabled]="copied === wellKnownV.value"
|
||||
[matTooltip]="(copied !== wellKnownV.value ? 'ACTIONS.COPY' : 'ACTIONS.COPIED') | translate"
|
||||
cnslCopyToClipboard
|
||||
[valueToCopy]="wellKnownV.value"
|
||||
(copiedValue)="copied = wellKnownV.key"
|
||||
>
|
||||
{{ wellKnownV.value }}
|
||||
</button>
|
||||
</div>
|
||||
</div></ng-container
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</cnsl-card>
|
||||
</ng-container>
|
||||
|
||||
<ng-container *ngIf="currentSetting === 'urls' && samlForm && app?.samlConfig">
|
||||
<cnsl-card title=" {{ 'APP.URLS' | translate }}" *ngIf="environmentMap$ | async as environmentMap">
|
||||
<div class="app-info-row">
|
||||
<div class="app-info-wrapper" *ngIf="environmentMap['samlCertificateURL']">
|
||||
<p class="app-info-row-title cnsl-secondary-text">{{ 'APP.SAML.CERTIFICATE' | translate }}</p>
|
||||
<div class="app-copy-row">
|
||||
<div class="environment">
|
||||
<button
|
||||
[disabled]="copied === environmentMap['samlCertificateURL']"
|
||||
[matTooltip]="
|
||||
(copied !== environmentMap['samlCertificateURL'] ? 'ACTIONS.COPY' : 'ACTIONS.COPIED') | translate
|
||||
"
|
||||
cnslCopyToClipboard
|
||||
[valueToCopy]="environmentMap['samlCertificateURL']"
|
||||
(copiedValue)="copied = environmentMap['samlCertificateURL']"
|
||||
>
|
||||
{{ environmentMap['samlCertificateURL'] }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="app-info-wrapper" *ngIf="environmentMap['samlSSO']">
|
||||
<p class="app-info-row-title cnsl-secondary-text">Single Sign On (SSO)</p>
|
||||
<div class="app-copy-row">
|
||||
<div class="environment">
|
||||
<button
|
||||
[disabled]="copied === environmentMap['samlSSO']"
|
||||
[matTooltip]="(copied !== environmentMap['samlSSO'] ? 'ACTIONS.COPY' : 'ACTIONS.COPIED') | translate"
|
||||
cnslCopyToClipboard
|
||||
[valueToCopy]="environmentMap['samlSSO']"
|
||||
(copiedValue)="copied = environmentMap['samlSSO']"
|
||||
>
|
||||
{{ environmentMap['samlSSO'] }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="app-info-wrapper" *ngIf="environmentMap['samlSLO']">
|
||||
<p class="app-info-row-title cnsl-secondary-text">Single Logoout (SLO)</p>
|
||||
<div class="app-copy-row">
|
||||
<div class="environment">
|
||||
<button
|
||||
[disabled]="copied === environmentMap['samlSLO']"
|
||||
[matTooltip]="(copied !== environmentMap['samlSLO'] ? 'ACTIONS.COPY' : 'ACTIONS.COPIED') | translate"
|
||||
cnslCopyToClipboard
|
||||
[valueToCopy]="environmentMap['samlSLO']"
|
||||
(copiedValue)="copied = environmentMap['samlSLO']"
|
||||
>
|
||||
{{ environmentMap['samlSLO'] }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<cnsl-copy-row
|
||||
labelMinWidth="220px"
|
||||
*ngFor="let apiUrl of apiMap$ | async | keyvalue"
|
||||
[label]="apiUrl.key"
|
||||
[value]="apiUrl.value"
|
||||
></cnsl-copy-row>
|
||||
<ng-container *ngIf="app?.samlConfig && samlMap$ | async as samlMap">
|
||||
<cnsl-copy-row
|
||||
labelMinWidth="220px"
|
||||
*ngIf="samlMap['samlCertificateURL'] as url"
|
||||
[label]="'APP.SAML.CERTIFICATE' | translate"
|
||||
[value]="url"
|
||||
>
|
||||
<a class="download-button" mat-stroked-button [href]="url" download>{{ 'ACTIONS.DOWNLOAD' | translate }}</a>
|
||||
</cnsl-copy-row>
|
||||
<cnsl-copy-row
|
||||
labelMinWidth="220px"
|
||||
*ngIf="samlMap['samlSSO'] as url"
|
||||
label="Single Sign On (SSO)"
|
||||
[value]="url"
|
||||
></cnsl-copy-row>
|
||||
<cnsl-copy-row
|
||||
labelMinWidth="220px"
|
||||
*ngIf="samlMap['samlSLO'] as url"
|
||||
label="Single Logout (SLO)"
|
||||
[value]="url"
|
||||
></cnsl-copy-row>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="!app?.samlConfig">
|
||||
<ng-container *ngFor="let wellknown of wellknownMap$ | async | keyvalue">
|
||||
<cnsl-copy-row
|
||||
labelMinWidth="220px"
|
||||
*ngIf="wellknown.key.endsWith('endpoint') || wellknown.key.toString() === 'jwks_uri'"
|
||||
[label]="wellknown.key"
|
||||
[value]="wellknown.value"
|
||||
></cnsl-copy-row>
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
</cnsl-card>
|
||||
</ng-container>
|
||||
|
||||
|
||||
@@ -93,7 +93,26 @@ export class AppDetailComponent implements OnInit, OnDestroy {
|
||||
};
|
||||
}),
|
||||
);
|
||||
public wellKnownMap$ = this.envSvc.wellKnown;
|
||||
public apiMap$ = this.envSvc.env.pipe(
|
||||
map((env) => {
|
||||
return {
|
||||
issuer: env.issuer,
|
||||
adminServiceUrl: `${env.api}/admin/v1`,
|
||||
mgmtServiceUrl: `${env.api}/management/v1`,
|
||||
authServiceUrl: `${env.api}/auth/v1`,
|
||||
};
|
||||
}),
|
||||
);
|
||||
public samlMap$ = this.envSvc.env.pipe(
|
||||
map((env) => {
|
||||
return {
|
||||
samlCertificateURL: `${env.issuer}/saml/v2/certificate`,
|
||||
samlSSO: `${env.issuer}/saml/v2/SSO`,
|
||||
samlSLO: `${env.issuer}/saml/v2/SLO`,
|
||||
};
|
||||
}),
|
||||
);
|
||||
public wellknownMap$ = this.envSvc.wellknown;
|
||||
|
||||
public oidcResponseTypes: OIDCResponseType[] = [
|
||||
OIDCResponseType.OIDC_RESPONSE_TYPE_CODE,
|
||||
|
||||
@@ -46,6 +46,7 @@ import { RedirectUrisComponent } from './redirect-uris/redirect-uris.component';
|
||||
import { IntegrateAppComponent } from './integrate/integrate.component';
|
||||
import { OIDCConfigurationComponent } from 'src/app/components/oidc-configuration/oidc-configuration.component';
|
||||
import { FrameworkChangeComponent } from 'src/app/components/framework-change/framework-change.component';
|
||||
import { CopyRowComponent } from '../../../components/copy-row/copy-row.component';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
@@ -99,6 +100,7 @@ import { FrameworkChangeComponent } from 'src/app/components/framework-change/fr
|
||||
CodemirrorModule,
|
||||
ChangesModule,
|
||||
InfoSectionModule,
|
||||
CopyRowComponent,
|
||||
],
|
||||
exports: [TranslateModule],
|
||||
})
|
||||
|
||||
@@ -6,10 +6,9 @@
|
||||
<mat-icon class="icon">info_outline</mat-icon>
|
||||
</a>
|
||||
</div>
|
||||
<p
|
||||
class="sub cnsl-secondary-text max-width-description"
|
||||
[innerHTML]="'DESCRIPTIONS.PROJECTS.DESCRIPTION' | translate"
|
||||
></p>
|
||||
<p class="sub cnsl-secondary-text max-width-description">
|
||||
{{ 'DESCRIPTIONS.PROJECTS.DESCRIPTION' | translate }}
|
||||
</p>
|
||||
<div class="projects-controls">
|
||||
<div class="project-toggle-group">
|
||||
<cnsl-nav-toggle
|
||||
|
||||
Reference in New Issue
Block a user