Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Swap the oauth url to make more readable

天舟2e1f6693477b
diff --git a/backend/server/vcs.go b/backend/server/vcs.go
index 16c8781fed..042d8a7d75 100644
--- a/backend/server/vcs.go
+++ b/backend/server/vcs.go
@@ -176,7 +176,7 @@ func (s *Server) registerVCSRoutes(g *echo.Group) {
oauthToken := &api.OAuthToken{}
switch vcs.Type {
case "GITLAB_SELF_HOST":
- url := fmt.Sprintf("%s/oauth/token?client_id=%s&client_secret=%s&code=%s&grant_type=authorization_code&redirect_uri=%s",
+ url := fmt.Sprintf("%s/oauth/token?client_id=%s&client_secret=%s&code=%s&redirect_uri=%s&grant_type=authorization_code",
vcs.InstanceURL,
vcs.ApplicationId,
vcs.Secret,