From 3e0f0c02850b3f1e75400644252cc9d5edaf33a7 Mon Sep 17 00:00:00 2001 From: ahmed Date: Mon, 26 Sep 2022 22:02:22 +0200 Subject: [PATCH] oauth: consider hosted gitlab with relative path Signed-off-by: ahmed --- plugins/auth-backend/src/providers/gitlab/provider.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/auth-backend/src/providers/gitlab/provider.ts b/plugins/auth-backend/src/providers/gitlab/provider.ts index 7f5489d391..31efafa4ee 100644 --- a/plugins/auth-backend/src/providers/gitlab/provider.ts +++ b/plugins/auth-backend/src/providers/gitlab/provider.ts @@ -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,