From 42e7425182bc94ec35c784d3b5233ff95e3ce517 Mon Sep 17 00:00:00 2001 From: ch-lepp Date: Wed, 3 Jul 2024 15:27:48 +0200 Subject: [PATCH] Aligned scope param default value with oauth spec --- td.server/src/providers/gitlab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td.server/src/providers/gitlab.js b/td.server/src/providers/gitlab.js index 73a4431d3..d2e87769a 100644 --- a/td.server/src/providers/gitlab.js +++ b/td.server/src/providers/gitlab.js @@ -28,7 +28,7 @@ const getGitlabUrl = () => { * @returns {String} */ const getOauthRedirectUrl = () => { - const scope = env.get().config.GITLAB_SCOPE || 'read_user,read_repository,write_repository,profile'; + const scope = env.get().config.GITLAB_SCOPE || 'read_user read_repository write_repository profile'; return `${getGitlabUrl()}/oauth/authorize?scope=${scope}&redirect_uri=${env.get().config.GITLAB_REDIRECT_URI}&response_type=code&client_id=${env.get().config.GITLAB_CLIENT_ID}`; };