Replies: 1 comment 1 reply
-
It seems this is already supported, simply by providing your gitlab instance host in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description 📓
The current implementation of the GitLab provider only works with the managed instance at https://gitlab.com and the scope
read_user
; see linenext-auth/packages/core/src/providers/gitlab.ts
Line 100 in 039a14d
To make the provider work with a self-hosted instance, one needs to find the three options that need to be replaced and their respective values.
Similar when needing additional scopes; for those it's only one option that needs to be changed, but it must be found as well.
I suggest to extend the provider function with additional parameters
gitlabInstance
that defaults tohttps://gitlab.com/
when omitted or falsy andscopes
that defaults toread_user
Any recommendations, suggestions, questions? If not, I'd start a PR.
How to reproduce ☕️
Proposed implementation:
Contributing 🙌🏽
Yes, I am willing to help implement this feature in a PR
Beta Was this translation helpful? Give feedback.
All reactions