Skip to content

Commit f94d5b9

Browse files
authored
Merge pull request #3118 from Dokploy/3007-gitlab-oauth-error-the-requested-scope-is-invalid-due-to-scope-instead-of-scopes-in-oauth-url-v0256
fix: correct query parameter name in GitLab authorization URL
2 parents f61fb3a + b9d05b0 commit f94d5b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dokploy/components/dashboard/settings/git/show-git-providers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const ShowGitProviders = () => {
4848
) => {
4949
const redirectUri = `${url}/api/providers/gitlab/callback?gitlabId=${gitlabId}`;
5050
const scope = "api read_user read_repository";
51-
const authUrl = `${gitlabUrl}/oauth/authorize?client_id=${clientId}&redirect_uri=${encodeURIComponent(redirectUri)}&response_type=code&scope=${encodeURIComponent(scope)}`;
51+
const authUrl = `${gitlabUrl}/oauth/authorize?client_id=${clientId}&redirect_uri=${encodeURIComponent(redirectUri)}&response_type=code&scopes=${encodeURIComponent(scope)}`;
5252
return authUrl;
5353
};
5454

0 commit comments

Comments
 (0)