Gitlab SSO Plugin
-
Is there a Gitlab SSO plugin? Would be really cool
I have tried forking OAuth SSO and adapting it for Gitlab: https://github.com/rfc2822/nodebb-plugin-sso-gitlab but it didn't work well …
-
Got it working https://github.com/rfc2822/nodebb-plugin-sso-gitlab
- Create a Gitlab application with scopes
openid
andread_user
. - Set the application ID/secret in
config.json
:"oauth": { "id": "yyyyooouuurrr iiiidddd", "secret": "sssseeeccrreeetttt" }
- Install & activate the gitlab-sso-gitlab plugin (I used npm link).
- Create a Gitlab application with scopes
-
Great work!
With SSO for major services, it might actually be much easier to fork sso-github or similar, instead. Reason being there sometimes are npm packages that help you log in to these services.
e.g. https://www.npmjs.com/package/passport-gitlab2
Then you can really just change the
require
from github to gitlab, and hopefully it would just work.Almost all of the time it actually won't be that easy, but it sure beats doing it from the sso-oauth base!
Copyright © 2024 NodeBB | Contributors