fix: add .txt ending to domain validation as given in console (#6079)

* fix: add .txt ending to domain validation as given in console

* fix console

---------

Co-authored-by: Max Peintner <max@caos.ch>
Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
Stefan Benz 2023-07-07 13:50:45 +02:00 committed by GitHub
parent 699fc86d1b
commit d8b823660b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@
<div *ngIf="http"> <div *ngIf="http">
<p>HTTP TOKEN</p> <p>HTTP TOKEN</p>
<p class="entry">{{ http.url }}.txt</p> <p class="entry">{{ http.url }}</p>
<div class="btn-container"> <div class="btn-container">
<button mat-stroked-button (click)="saveFile()" color="primary">{{ 'ORG.PAGES.DOWNLOAD_FILE' | translate }}</button> <button mat-stroked-button (click)="saveFile()" color="primary">{{ 'ORG.PAGES.DOWNLOAD_FILE' | translate }}</button>

View File

@ -15,7 +15,7 @@ const (
CheckTypeHTTP CheckType = iota CheckTypeHTTP CheckType = iota
CheckTypeDNS CheckTypeDNS
HTTPPattern = "https://%s/.well-known/zitadel-challenge/%s" HTTPPattern = "https://%s/.well-known/zitadel-challenge/%s.txt"
DNSPattern = "_zitadel-challenge.%s" DNSPattern = "_zitadel-challenge.%s"
) )

View File

@ -653,7 +653,7 @@ func TestCommandSide_GenerateOrgDomainValidation(t *testing.T) {
}, },
res: res{ res: res{
wantToken: "a", wantToken: "a",
wantURL: "https://domain.ch/.well-known/zitadel-challenge/a", wantURL: "https://domain.ch/.well-known/zitadel-challenge/a.txt",
}, },
}, },
} }