summaryrefslogtreecommitdiff
path: root/app/constants.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-23 13:15:59 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-23 13:15:59 -0400
commit8eb739bb910fb91737c6ce65f244eb9a3ac8f35c (patch)
treedb615be44d945a8dc1880a1238a381ec6534dfa2 /app/constants.php
parent297c11e48e1cf18e5773a7463721d862dfd6063d (diff)
Add Gitlab authentication
Diffstat (limited to 'app/constants.php')
-rw-r--r--app/constants.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/constants.php b/app/constants.php
index 99770aba..4f82e343 100644
--- a/app/constants.php
+++ b/app/constants.php
@@ -50,6 +50,14 @@ defined('GITHUB_OAUTH_AUTHORIZE_URL') or define('GITHUB_OAUTH_AUTHORIZE_URL', 'h
defined('GITHUB_OAUTH_TOKEN_URL') or define('GITHUB_OAUTH_TOKEN_URL', 'https://github.com/login/oauth/access_token');
defined('GITHUB_API_URL') or define('GITHUB_API_URL', 'https://api.github.com/');
+// Gitlab authentication
+defined('GITLAB_AUTH') or define('GITLAB_AUTH', false);
+defined('GITLAB_CLIENT_ID') or define('GITLAB_CLIENT_ID', '');
+defined('GITLAB_CLIENT_SECRET') or define('GITLAB_CLIENT_SECRET', '');
+defined('GITLAB_OAUTH_AUTHORIZE_URL') or define('GITLAB_OAUTH_AUTHORIZE_URL', 'https://gitlab.com/oauth/authorize');
+defined('GITLAB_OAUTH_TOKEN_URL') or define('GITLAB_OAUTH_TOKEN_URL', 'https://gitlab.com/oauth/token');
+defined('GITLAB_API_URL') or define('GITLAB_API_URL', 'https://gitlab.com/api/v3/');
+
// Proxy authentication
defined('REVERSE_PROXY_AUTH') or define('REVERSE_PROXY_AUTH', false);
defined('REVERSE_PROXY_USER_HEADER') or define('REVERSE_PROXY_USER_HEADER', 'REMOTE_USER');