[NOT MAINTAINED] Github Authentication Plugin for Kanboard
Link a Github account to a Kanboard user profile.
You have the choice between 3 methods:
plugins/GithubAuth
plugins/GithubAuth
Note: Plugin folder is case-sensitive.
The Github authentication in Kanboard uses the OAuth 2.0 protocol, so any user of Kanboard can be linked to a Github account.
That means you can use your Github account to login on Kanboard.
Now, on the login page you can be authenticated in one click with the link Login with my Github Account.
Your name and email are automatically updated from your Github Account if defined.
If you use the second method, use these parameters in your config.php
:
// Github client id (Copy it from your settings -> Applications -> Developer applications)
define('GITHUB_CLIENT_ID', 'YOUR_GITHUB_CLIENT_ID');
// Github client secret key (Copy it from your settings -> Applications -> Developer applications)
define('GITHUB_CLIENT_SECRET', 'YOUR_GITHUB_CLIENT_SECRET');
To use this authentication method with Github Enterprise you have to change the default urls.
Replace these values by your self-hosted instance of Github:
// Github oauth2 authorize url
define('GITHUB_OAUTH_AUTHORIZE_URL', 'https://github.com/login/oauth/authorize');
// Github oauth2 token url
define('GITHUB_OAUTH_TOKEN_URL', 'https://github.com/login/oauth/access_token');
// Github API url (don't forget the slash at the end)
define('GITHUB_API_URL', 'https://api.github.com/');
Kanboard uses these information from your public Github profile:
The Github unique id is used to link the local user account and the Github account.