Skip to content

Commit

Permalink
Omit GitLab client secret (#1538)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjcheetham authored Oct 7, 2024
2 parents 7b60eee + f600e92 commit 1c80d4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/shared/GitLab/GitLabConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public static class GitLabConstants

// Owned by https://gitlab.com/gitcredentialmanager
public const string OAuthClientId = "172b9f227872b5dde33f4d9b1db06a6a5515ae79508e7a00c973c85ce490671e";
public const string OAuthClientSecret = "7da92770d1447508601e4ba026bc5eb655c8268e818cd609889cc9bae2023f39";

public static readonly Uri OAuthRedirectUri = new Uri("http://127.0.0.1/");
// https://docs.gitlab.com/ee/api/oauth2.html#authorization-code-flow
Expand Down
3 changes: 2 additions & 1 deletion src/shared/GitLab/GitLabOAuth2Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ private static string GetClientSecret(ISettings settings)
return clientSecret;
}

return GitLabConstants.OAuthClientSecret;
// no secret necessary
return null;
}
}
}

0 comments on commit 1c80d4b

Please sign in to comment.