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.testlinkOauthProvider
More file actions
33 lines (24 loc) · 1.12 KB
/
custom_config.inc.php.github.testlinkOauthProvider
File metadata and controls
33 lines (24 loc) · 1.12 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
<?php
#
# Application is registered for github user TestlinkOauthProvider
# using ngrok to provide a public URL.
#
# Here the command:
# ngrok http -region eu -subdomain=testlink 80
#
$tlCfg->OAuthServers[2]['redirect_uri'] =
'http://testlink.eu.ngrok.io/development/github-oauth/login.php?oauth=github';
$tlCfg->OAuthServers[2]['oauth_client_id'] ='39eaa098ffffcda54b63';
$tlCfg->OAuthServers[2]['oauth_client_secret'] =
'd5dbe0344ca9b5f0857769d87ba14cf99bdc2b1c';
$tlCfg->OAuthServers[2]['oauth_enabled'] = true;
$tlCfg->OAuthServers[2]['oauth_name'] = 'github';
$tlCfg->OAuthServers[2]['oauth_icon'] = 'github.png';
// 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';
# End Of File