forked from TestLinkOpenSourceTRMS/testlink-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom_config.inc.php.github.testlinkOauth.php
More file actions
28 lines (22 loc) · 1.07 KB
/
custom_config.inc.php.github.testlinkOauth.php
File metadata and controls
28 lines (22 loc) · 1.07 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
<?php
#
# 20200522 - tested OK
# Application is registered for github user testlinkOAuth
# using ngrok to provide a public URL.
#
# Here the command:
# NOT IS THE CASE
# ngrok http -region eu -subdomain=testlink 80
#
$tlCfg->OAuthServers[2]['redirect_uri'] = 'http://fman.hopto.org/login.php?oauth=github';
$tlCfg->OAuthServers[2]['oauth_client_id'] = 'aa5f70a8de342fb95043';
$tlCfg->OAuthServers[2]['oauth_client_secret'] = 'c8d61d5ec4ed4eb2ac81064c27043ddef351107e';
$tlCfg->OAuthServers[2]['oauth_enabled'] = true;
$tlCfg->OAuthServers[2]['oauth_name'] = 'github';
// Can be authorization_code (by default), client_credentials or password
$tlCfg->OAuthServers[2]['oauth_grant_type'] = 'authorization_code';
$tlCfg->OAuthServers[2]['oauth_url'] = 'https://github.com/login/oauth/authorize';
$tlCfg->OAuthServers[2]['token_url'] = 'https://github.com/login/oauth/access_token';
$tlCfg->OAuthServers[2]['oauth_force_single'] = false;
$tlCfg->OAuthServers[2]['oauth_profile'] = 'https://api.github.com/user';
$tlCfg->OAuthServers[2]['oauth_scope'] = 'user:email';