Skip to content

Commit b9d05b0

Browse files
author
Mauricio Siu
committed
fix: correct query parameter name in GitLab authorization URL
1 parent f61fb3a commit b9d05b0

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)