Add Gitlab authentication
This commit is contained in:
@@ -139,6 +139,24 @@ 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/');
|
||||
|
||||
// Enable/disable Gitlab authentication
|
||||
define('GITLAB_AUTH', false);
|
||||
|
||||
// Gitlab application id
|
||||
define('GITLAB_CLIENT_ID', '');
|
||||
|
||||
// Gitlab application secret
|
||||
define('GITLAB_CLIENT_SECRET', '');
|
||||
|
||||
// Gitlab oauth2 authorize url
|
||||
define('GITLAB_OAUTH_AUTHORIZE_URL', 'https://gitlab.com/oauth/authorize');
|
||||
|
||||
// Gitlab oauth2 token url
|
||||
define('GITLAB_OAUTH_TOKEN_URL', 'https://gitlab.com/oauth/token');
|
||||
|
||||
// Gitlab API url endpoint (don't forget the slash at the end)
|
||||
define('GITLAB_API_URL', 'https://gitlab.com/api/v3/');
|
||||
|
||||
// Enable/disable the reverse proxy authentication
|
||||
define('REVERSE_PROXY_AUTH', false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user