Name: plugin-gitlab-auth
Owner: Kanboard
Description: Gitlab Authentication Plugin for Kanboard
Created: 2016-01-30 04:42:55.0
Updated: 2018-04-24 00:27:58.0
Pushed: 2018-04-01 20:02:44.0
Size: 29
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Link a GitLab account to a Kanboard user profile.
You have the choice between 3 methods:
plugins/GitlabAuth
plugins/GitlabAuth
Note: Plugin folder is case-sensitive.
The GitLab authentication in Kanboard uses the OAuth 2.0 protocol, so any user of Kanboard can be linked to a GitLab account.
That means you can use your GitLab account to login on Kanboard.
If you use the second method, use these parameters in your config.php
:
itLab application id
ne('GITLAB_CLIENT_ID', 'YOUR_APPLICATION_ID');
itLab application secret
ne('GITLAB_CLIENT_SECRET', 'YOUR_APPLICATION_SECRET');
Change the default values if you use a self-hosted instance of GitLab:
http://YOUR_GITLAB_HOSTNAME:CUSTOM_PORT/oauth/authorize
(example: http://192.168.99.100:8080/oauth/authorize
)http://YOUR_GITLAB_HOSTNAME:CUSTOM_PORT/oauth/token
http://YOUR_GITLAB_HOSTNAME:CUSTOM_PORT/api/v3/
(don't forget the trailing slash)Now, on the login page you can be authenticated in one click with the link Login with my GitLab Account.
Your name and email are automatically updated from your GitLab Account if defined.
New users will have the same username as the one in GitLab and they will be tagged as remote user.
Important Note: If you use the public GitLab and don't apply any domain restriction, everybody in the world will be able to sign in.
Kanboard uses these information from your GitLab profile:
The GitLab unique id is used to link the local user account and the GitLab account.
GitLab OAuth will work only with url rewrite enabled. At the moment, GitLab doesn't support callback url with query string parameters. See GitLab issue.