Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit d3a3d72

Browse files
authoredAug 14, 2024··
Add support for Bitbucket Server OAuth2 (#64179)
Docs here: sourcegraph/docs#561 This PR adds support for using Bitbucket Server OAuth2 application links for sign-in and permission syncing. When used for permission syncing, the user's oauth token is used to fetch user permissions (and now permissions are fetched via the server). ## Test plan Tests added and updated. ## Changelog - Sourcegraph now supports Bitbucket Server OAuth2 application links for user sign-in and permission syncing.
1 parent 56e1f11 commit d3a3d72

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1975
-169
lines changed
 

‎client/web/src/auth/SignInPage.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ const ProviderIcon: React.FunctionComponent<{ serviceType: AuthProvider['service
222222
case 'bitbucketCloud': {
223223
return <Icon aria-hidden={true} svgPath={mdiBitbucket} />
224224
}
225+
case 'bitbucketServer': {
226+
return <Icon aria-hidden={true} svgPath={mdiBitbucket} />
227+
}
225228
case 'azuredevops': {
226229
return <Icon aria-hidden={true} svgPath={mdiMicrosoftAzureDevops} />
227230
}

‎client/web/src/auth/SignUpForm.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ export const SignUpForm: React.FunctionComponent<React.PropsWithChildren<SignUpF
226226
<Icon aria-hidden={true} svgPath={mdiGitlab} />
227227
) : provider.serviceType === 'bitbucketCloud' ? (
228228
<Icon aria-hidden={true} svPath={mdiBitbucket} />
229+
) : provider.serviceType === 'bitbucketServer' ? (
230+
<Icon aria-hidden={true} svgPath={mdiBitbucket} />
229231
) : null}{' '}
230232
Continue with {provider.displayName}
231233
</Button>

0 commit comments

Comments
 (0)