feat(auth): allow custom GitLab endpoints for self-managed instances (#6399)

* Allow custom GitLab endpoints for self-hosting

---------

Co-authored-by: Nicolas Giard <github@ngpixel.com>
This commit is contained in:
DerekJarvis
2023-05-11 17:42:17 -07:00
committed by GitHub
parent 5b80b5e850
commit fd00272314
2 changed files with 12 additions and 0 deletions

View File

@@ -15,6 +15,8 @@ module.exports = {
clientSecret: conf.clientSecret,
callbackURL: conf.callbackURL,
baseURL: conf.baseUrl,
authorizationURL: conf.authorizationURL || (conf.baseUrl + '/oauth/authorize'),
tokenURL: conf.tokenURL || (conf.baseUrl + '/oauth/token'),
scope: ['read_user'],
passReqToCallback: true
}, async (req, accessToken, refreshToken, profile, cb) => {