Skip to content

Commit 7c42d42

Browse files
authored
Update coderd/gitauth/oauth.go
1 parent c821fc5 commit 7c42d42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

coderd/gitauth/oauth.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ var scope = map[codersdk.GitProvider][]string{
4848
// regex provides defaults for each Git provider to match their SaaS host URL.
4949
// This is configurable by each provider.
5050
var regex = map[codersdk.GitProvider]*regexp.Regexp{
51-
codersdk.GitProviderAzureDevops: regexp.MustCompile(`^(https?:\/\/)?dev\.azure\.com(\/.*)?$`),
52-
codersdk.GitProviderBitBucket: regexp.MustCompile(`^(https?:\/\/)?bitbucket\.org(\/.*)?$`),
53-
codersdk.GitProviderGitLab: regexp.MustCompile(`^(https?:\/\/)?gitlab\.com(\/.*)?$`),
54-
codersdk.GitProviderGitHub: regexp.MustCompile(`^(https?:\/\/)?github\.com(\/.*)?$`),
51+
codersdk.GitProviderAzureDevops: regexp.MustCompile(`^(https?://)?dev\.azure\.com(/.*)?$`),
52+
codersdk.GitProviderBitBucket: regexp.MustCompile(`^(https?://)?bitbucket\.org(/.*)?$`),
53+
codersdk.GitProviderGitLab: regexp.MustCompile(`^(https?://)?gitlab\.com(/.*)?$`),
54+
codersdk.GitProviderGitHub: regexp.MustCompile(`^(https?://)?github\.com(/.*)?$`),
5555
}
5656

5757
// newJWTOAuthConfig creates a new OAuth2 config that uses a custom

0 commit comments

Comments
 (0)