Merge pull request #13855 from OpenSourceZombie/ahmed/fix-ouath

gitlab oauth: consider hosted gitlab with relative path
This commit is contained in:
Patrik Oldsberg
2022-09-27 11:08:55 +02:00
committed by GitHub
2 changed files with 8 additions and 0 deletions
@@ -91,6 +91,9 @@ export class GitlabAuthProvider implements OAuthHandlers {
clientSecret: options.clientSecret,
callbackURL: options.callbackUrl,
baseURL: options.baseUrl,
authorizationURL: `${options.baseUrl}/oauth/authorize`,
tokenURL: `${options.baseUrl}/oauth/token`,
profileURL: `${options.baseUrl}/api/v4/user`,
},
(
accessToken: any,