From d8b823660b538394c13217aec234e1e2be74bc52 Mon Sep 17 00:00:00 2001 From: Stefan Benz <46600784+stebenz@users.noreply.github.com> Date: Fri, 7 Jul 2023 13:50:45 +0200 Subject: [PATCH] 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 Co-authored-by: Livio Spring --- .../domain-verification/domain-verification.component.html | 2 +- internal/api/http/domain_check.go | 2 +- internal/command/org_domain_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/console/src/app/pages/domains/domain-verification/domain-verification.component.html b/console/src/app/pages/domains/domain-verification/domain-verification.component.html index 8790d7201e..364bcb659f 100644 --- a/console/src/app/pages/domains/domain-verification/domain-verification.component.html +++ b/console/src/app/pages/domains/domain-verification/domain-verification.component.html @@ -44,7 +44,7 @@

HTTP TOKEN

-

{{ http.url }}.txt

+

{{ http.url }}

diff --git a/internal/api/http/domain_check.go b/internal/api/http/domain_check.go index b4281c778e..3d39897991 100644 --- a/internal/api/http/domain_check.go +++ b/internal/api/http/domain_check.go @@ -15,7 +15,7 @@ const ( CheckTypeHTTP CheckType = iota CheckTypeDNS - HTTPPattern = "https://%s/.well-known/zitadel-challenge/%s" + HTTPPattern = "https://%s/.well-known/zitadel-challenge/%s.txt" DNSPattern = "_zitadel-challenge.%s" ) diff --git a/internal/command/org_domain_test.go b/internal/command/org_domain_test.go index 230fc5601a..feb737cde1 100644 --- a/internal/command/org_domain_test.go +++ b/internal/command/org_domain_test.go @@ -653,7 +653,7 @@ func TestCommandSide_GenerateOrgDomainValidation(t *testing.T) { }, res: res{ wantToken: "a", - wantURL: "https://domain.ch/.well-known/zitadel-challenge/a", + wantURL: "https://domain.ch/.well-known/zitadel-challenge/a.txt", }, }, }