Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-08-12 12:36:10 +0300
committerTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-08-12 12:36:10 +0300
commit1966ab9bf8592a32a7ff88e1d1439ed80f7f65bb (patch)
tree67050bfeab8865fd3b4db2746fa403932157c992 /helpers_test.go
parent3425634584820837fd88d14b944bbdc391823936 (diff)
Use reserved namespace 'projects' for the redirect uri to handle situation where root pages domain is not handled with pages daemon
Diffstat (limited to 'helpers_test.go')
-rw-r--r--helpers_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/helpers_test.go b/helpers_test.go
index 8ee27d0a..83107488 100644
--- a/helpers_test.go
+++ b/helpers_test.go
@@ -148,7 +148,7 @@ func RunPagesProcessWithAuth(t *testing.T, pagesPath string, listeners []ListenS
return runPagesProcess(t, true, pagesPath, listeners, promPort, nil, "-auth-client-id=1",
"-auth-client-secret=1",
"-auth-server=https://gitlab-auth.com",
- "-auth-redirect-uri=https://gitlab-example.com/auth",
+ "-auth-redirect-uri=https://projects.gitlab-example.com/auth",
"-auth-secret=something-very-secret")
}
@@ -156,7 +156,7 @@ func RunPagesProcessWithAuthServer(t *testing.T, pagesPath string, listeners []L
return runPagesProcess(t, true, pagesPath, listeners, promPort, nil, "-auth-client-id=1",
"-auth-client-secret=1",
"-auth-server="+authServer,
- "-auth-redirect-uri=https://gitlab-example.com/auth",
+ "-auth-redirect-uri=https://projects.gitlab-example.com/auth",
"-auth-secret=something-very-secret")
}
@@ -164,7 +164,7 @@ func RunPagesProcessWithAuthServerWithSSL(t *testing.T, pagesPath string, listen
return runPagesProcess(t, true, pagesPath, listeners, promPort, []string{"SSL_CERT_FILE=" + sslCertFile}, "-auth-client-id=1",
"-auth-client-secret=1",
"-auth-server="+authServer,
- "-auth-redirect-uri=https://gitlab-example.com/auth",
+ "-auth-redirect-uri=https://projects.gitlab-example.com/auth",
"-auth-secret=something-very-secret")
}