-
Notifications
You must be signed in to change notification settings - Fork 623
Expand file tree
/
Copy pathoauth.gitlab.inc.php
More file actions
44 lines (39 loc) · 1.46 KB
/
oauth.gitlab.inc.php
File metadata and controls
44 lines (39 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
# filesource oauth.gitlab.inc.php
#
# Some useful examples/documentation
# https://docs.gitlab.com/ce/api/oauth2.html
# https://grafana.com/docs/grafana/latest/auth/gitlab/
# Libraries used to create client
# https://github.com/thephpleague/oauth2-client
# https://github.com/omines/oauth2-gitlab
#
# IMPORTANT NOTICE
# key in $tlCfg->OAuthServers[]
# can be anything you want that make this configuration
# does not overwrite other or will be overwritten
#
# HOW TO use this file ?
# 1. copy this file to
# [TESTLINK_INSTALL]/cfg/
#
# 2. configure according your application
#
# 3. add the following line to your custom_config.inc.php
# require('aouth.gitlab.inc.php');
#
# ##############################################################
#
# This is a working example for test site
# http://fman.hopto.org/
#
# You need to create the configuration for your site
# This is only a working example that is useful
# for the TestLink Development Team
#
$tlCfg->OAuthServers['gitlab'] = array();
$tlCfg->OAuthServers['gitlab']['redirect_uri'] = 'http://fman.hopto.org/login.php?oauth=gitlab';
$tlCfg->OAuthServers['gitlab']['oauth_enabled'] = true;
$tlCfg->OAuthServers['gitlab']['oauth_name'] = 'gitlab';
$tlCfg->OAuthServers['gitlab']['oauth_client_id'] = '27a03c93d60b5ddb4e0cef92149678fbe37c099733605e046a5428a9da4177ba';
$tlCfg->OAuthServers['gitlab']['oauth_client_secret'] = 'c157df291b81dbfd8084d38b155029baded3cf76c7449670bd2da889fe8b99eb';