2023-12-07 13:53:53 +01:00
|
|
|
<div mat-dialog-title>
|
|
|
|
<div class="dialog-title">
|
|
|
|
<h2>{{ 'ORG.PAGES.ORGDOMAIN.TITLE' | translate: { value: domain?.domainName } }}</h2>
|
|
|
|
<a
|
|
|
|
mat-icon-button
|
|
|
|
href="https://zitadel.com/docs/guides/manage/console/organizations#verify-your-domain-name"
|
|
|
|
rel="noreferrer"
|
|
|
|
target="_blank"
|
|
|
|
aria-label="docs"
|
|
|
|
>
|
|
|
|
<mat-icon class="icon">info_outline</mat-icon>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div mat-dialog-content cdkFocusInitial autofocus>
|
|
|
|
<div *ngIf="showNew && !(dns || http)">
|
|
|
|
<p class="desc">{{ 'ORG.PAGES.ORGDOMAIN.VERIFICATION' | translate }}</p>
|
|
|
|
<p class="desc">
|
|
|
|
{{ 'ORG.PAGES.ORGDOMAIN.VERIFICATION_HTML' | translate }}
|
|
|
|
</p>
|
|
|
|
<p class="desc">{{ 'ORG.PAGES.ORGDOMAIN.VERIFICATION_DNS' | translate }}</p>
|
|
|
|
<p class="desc">{{ 'ORG.PAGES.ORGDOMAIN.VERIFICATION_SKIP' | translate }}</p>
|
|
|
|
</div>
|
2022-04-28 12:35:02 +02:00
|
|
|
|
2023-12-07 13:53:53 +01:00
|
|
|
<cnsl-info-section [type]="InfoSectionType.WARN" *ngIf="showNew && !(dns || http)" class="desc">{{
|
2022-06-07 11:08:05 +02:00
|
|
|
'ORG.PAGES.ORGDOMAIN.VERIFICATION_VALIDATION_DESC' | translate
|
|
|
|
}}</cnsl-info-section>
|
2022-04-28 12:35:02 +02:00
|
|
|
|
2023-12-07 13:53:53 +01:00
|
|
|
<p *ngIf="!showNew && !(dns || http)" class="desc">
|
|
|
|
{{
|
|
|
|
'ORG.PAGES.ORGDOMAIN.VERIFICATION_VALIDATION_ONGOING'
|
|
|
|
| translate: { value: domain?.validationType == 1 ? 'HTTP' : 'DNS' }
|
|
|
|
}}
|
2022-06-07 11:08:05 +02:00
|
|
|
</p>
|
2022-04-28 12:35:02 +02:00
|
|
|
|
|
|
|
<ng-container *ngIf="showNew">
|
|
|
|
<div *ngIf="http">
|
2023-12-07 13:53:53 +01:00
|
|
|
<p class="desc">{{ 'ORG.PAGES.ORGDOMAIN.VERIFICATION_HTTP_DESC' | translate: { value: domain?.domainName } }}</p>
|
|
|
|
<p class="desc">{{ 'ORG.PAGES.ORGDOMAIN.VERIFICATION_HTTP_URL_LABEL' | translate }}</p>
|
|
|
|
<div class="domain-entry" *ngIf="http.url">
|
|
|
|
<p>{{ http.url }}</p>
|
|
|
|
<button
|
|
|
|
color="primary"
|
|
|
|
[disabled]="copied === data.clientSecret"
|
|
|
|
matTooltip="copy to clipboard"
|
|
|
|
cnslCopyToClipboard
|
|
|
|
[valueToCopy]="http.url"
|
|
|
|
(copiedValue)="copied = $event"
|
|
|
|
mat-icon-button
|
|
|
|
>
|
|
|
|
<i *ngIf="copied !== http.url" class="las la-clipboard"></i>
|
|
|
|
<i *ngIf="copied === http.url" class="las la-clipboard-check"></i>
|
2022-04-28 12:35:02 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
2023-12-07 13:53:53 +01:00
|
|
|
|
|
|
|
<p class="desc">{{ 'ORG.PAGES.ORGDOMAIN.VERIFICATION_HTTP_FILE_LABEL' | translate }}</p>
|
|
|
|
<button mat-stroked-button (click)="saveFile()" color="primary">{{ 'ORG.PAGES.DOWNLOAD_FILE' | translate }}</button>
|
2022-04-28 12:35:02 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div *ngIf="dns">
|
2023-12-07 13:53:53 +01:00
|
|
|
<p class="desc">{{ 'ORG.PAGES.ORGDOMAIN.VERIFICATION_DNS_DESC' | translate: { value: domain?.domainName } }}</p>
|
|
|
|
<p class="desc">{{ 'ORG.PAGES.ORGDOMAIN.VERIFICATION_DNS_HOST_LABEL' | translate }}</p>
|
|
|
|
<div class="domain-line">
|
|
|
|
<div class="domain-entry" *ngIf="dns.token">
|
|
|
|
<p>{{ dnsChallenge }}</p>
|
|
|
|
<button
|
|
|
|
color="primary"
|
|
|
|
[disabled]="copied === data.clientSecret"
|
|
|
|
matTooltip="copy to clipboard"
|
|
|
|
cnslCopyToClipboard
|
|
|
|
[valueToCopy]="dnsChallenge"
|
|
|
|
(copiedValue)="copied = $event"
|
|
|
|
mat-icon-button
|
|
|
|
>
|
|
|
|
<i *ngIf="copied !== dnsChallenge" class="las la-clipboard"></i>
|
|
|
|
<i *ngIf="copied === dnsChallenge" class="las la-clipboard-check"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<span>.{{ domain?.domainName }}</span>
|
|
|
|
</div>
|
|
|
|
<p class="desc">{{ 'ORG.PAGES.ORGDOMAIN.VERIFICATION_DNS_CHALLENGE_LABEL' | translate }}</p>
|
|
|
|
<div class="domain-entry" *ngIf="dns.token">
|
|
|
|
<p>{{ dns.token }}</p>
|
2022-06-07 11:08:05 +02:00
|
|
|
<button
|
|
|
|
color="primary"
|
|
|
|
[disabled]="copied === data.clientSecret"
|
|
|
|
matTooltip="copy to clipboard"
|
|
|
|
cnslCopyToClipboard
|
|
|
|
[valueToCopy]="dns.token"
|
|
|
|
(copiedValue)="copied = $event"
|
|
|
|
mat-icon-button
|
|
|
|
>
|
2022-04-28 12:35:02 +02:00
|
|
|
<i *ngIf="copied !== dns.token" class="las la-clipboard"></i>
|
|
|
|
<i *ngIf="copied === dns.token" class="las la-clipboard-check"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ng-container>
|
|
|
|
</div>
|
|
|
|
<div mat-dialog-actions class="action">
|
2023-12-07 13:53:53 +01:00
|
|
|
<button
|
|
|
|
*ngIf="!showNew || dns || http"
|
|
|
|
color="primary"
|
|
|
|
type="submit"
|
|
|
|
mat-raised-button
|
|
|
|
class="verify-button"
|
|
|
|
(click)="validate()"
|
|
|
|
>
|
|
|
|
{{ 'ACTIONS.VERIFY' | translate }}
|
|
|
|
</button>
|
|
|
|
<mat-spinner class="spinner" *ngIf="validating" diameter="20" mode="indeterminate"></mat-spinner>
|
|
|
|
|
|
|
|
<button *ngIf="!showNew" mat-stroked-button color="primary" (click)="showNew = true">
|
|
|
|
{{ 'ORG.PAGES.ORGDOMAIN.RESETMETHOD' | translate }}
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<button color="primary" *ngIf="showNew && !(dns || http)" mat-raised-button (click)="loadHttpToken()">HTTP</button>
|
|
|
|
<button color="primary" *ngIf="showNew && !(dns || http)" mat-raised-button (click)="loadDnsToken()">DNS</button>
|
|
|
|
</div>
|
|
|
|
|
2022-06-07 11:08:05 +02:00
|
|
|
<button mat-stroked-button (click)="closeDialog()">
|
|
|
|
{{ 'ACTIONS.CLOSE' | translate }}
|
2022-04-28 12:35:02 +02:00
|
|
|
</button>
|
2022-06-07 11:08:05 +02:00
|
|
|
</div>
|