Skip to content

Commit 35e3fcc

Browse files
author
Tadayuki Onishi
committed
The server administrator should set fewer items.
The oauth icon is excluded from setting items because there is no flexibility in adding to setting items.
1 parent 7d47278 commit 35e3fcc

9 files changed

+2
-11
lines changed

config.inc.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,6 @@
465465
// $tlCfg->OAuthServers[1]['oauth_name'] = 'google';
466466

467467
// Get from /gui/themes/default/images
468-
// $tlCfg->OAuthServers[1]['oauth_icon'] = 'google.png';
469468
// $tlCfg->OAuthServers[1]['oauth_client_id'] = 'CLIENT_ID';
470469
// $tlCfg->OAuthServers[1]['oauth_client_secret'] = 'CLIENT_SECRET';
471470
// Can be authorization_code (by default), client_credentials or password
@@ -482,7 +481,6 @@
482481
// Github
483482
// $tlCfg->OAuthServers[2]['oauth_enabled'] = true;
484483
// $tlCfg->OAuthServers[2]['oauth_name'] = 'github';
485-
// $tlCfg->OAuthServers[2]['oauth_icon'] = 'github.png'; //Get from /gui/themes/default/images
486484
// $tlCfg->OAuthServers[2]['oauth_client_id'] = 'CLIENT_ID';
487485
// $tlCfg->OAuthServers[2]['oauth_client_secret'] = 'CLIENT_SECRET';
488486

@@ -499,7 +497,6 @@
499497
//Microsoft
500498
//$tlCfg->OAuthServers[1]['oauth_enabled'] = true;
501499
//$tlCfg->OAuthServers[1]['oauth_name'] = 'microsoft';
502-
//$tlCfg->OAuthServers[1]['oauth_icon'] = 'mslogo.jpg';
503500
//$tlCfg->OAuthServers[1]['oauth_client_id'] = 'CLIENT_ID';
504501
//$tlCfg->OAuthServers[1]['oauth_client_secret'] = 'CLIENT_SECRET';
505502

@@ -522,7 +519,6 @@
522519

523520
// $tlCfg->OAuthServers[1]['oauth_enabled'] = true;
524521
// $tlCfg->OAuthServers[1]['oauth_name'] = 'azuread'; //do not change this
525-
// $tlCfg->OAuthServers[1]['oauth_icon'] = 'azuread.png';
526522

527523
// $tlCfg->OAuthServers[1]['oauth_client_id'] = 'CLIENT_ID';
528524
// $tlCfg->OAuthServers[1]['oauth_client_secret'] = 'CLIENT_SECRET';

custom_config.inc.php.example

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
// $tlCfg->authentication['oauth'][1]['oauth_name'] = 'google';
9595

9696
// Get from /gui/themes/default/images
97-
// $tlCfg->authentication['oauth'][1]['oauth_icon'] = 'google.png';
9897
// $tlCfg->authentication['oauth'][1]['oauth_client_id'] = 'CLIENT_ID';
9998
// $tlCfg->authentication['oauth'][1]['oauth_client_secret'] = 'CLIENT_SECRET';
10099
// Can be authorization_code (by default), client_credentials or password
@@ -111,7 +110,6 @@
111110
// Github
112111
// $tlCfg->authentication['oauth'][2]['oauth_enabled'] = true;
113112
// $tlCfg->authentication['oauth'][2]['oauth_name'] = 'github';
114-
// $tlCfg->authentication['oauth'][2]['oauth_icon'] = 'github.png'; //Get from /gui/themes/default/images
115113
// $tlCfg->authentication['oauth'][2]['oauth_client_id'] = 'CLIENT_ID';
116114
// $tlCfg->authentication['oauth'][2]['oauth_client_secret'] = 'CLIENT_SECRET';
117115

custom_config.inc.php.example.github_oauth

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# ngrok http -region eu -subdomain=testlink 80
33
$tlCfg->OAuthServers[2]['oauth_enabled'] = true;
44
$tlCfg->OAuthServers[2]['oauth_name'] = 'github';
5-
$tlCfg->OAuthServers[2]['oauth_icon'] = 'github.png';
65

76
$tlCfg->OAuthServers[2]['oauth_client_id'] = '98e37f6f3f91602e9538';
87
$tlCfg->OAuthServers[2]['oauth_client_secret'] = 'b66f036df4210af08a5d7b7fbf564e731e0ff189';

custom_config.inc.php.github.testlinkOauthProvider

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ $tlCfg->OAuthServers[2]['oauth_client_secret'] =
1515

1616
$tlCfg->OAuthServers[2]['oauth_enabled'] = true;
1717
$tlCfg->OAuthServers[2]['oauth_name'] = 'github';
18-
$tlCfg->OAuthServers[2]['oauth_icon'] = 'github.png';
1918

2019
// Can be authorization_code (by default), client_credentials or password
2120
$tlCfg->OAuthServers[2]['oauth_grant_type'] = 'authorization_code';

custom_config.inc.php.google_oauth

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// $tlCfg->authentication['oauth'][1]['oauth_name'] = 'google';
2020

2121
// Get from /gui/themes/default/images
22-
// $tlCfg->authentication['oauth'][1]['oauth_icon'] = 'google.png';
2322
// Can be authorization_code (by default), client_credentials or password
2423
// $tlCfg->authentication['oauth'][1]['oauth_grant_type'] = 'authorization_code';
2524
// $tlCfg->authentication['oauth'][1]['oauth_url'] = 'https://accounts.google.com/o/oauth2/auth';
403 Bytes
Loading

gui/themes/default/images/mslogo.jpg

-21.6 KB
Binary file not shown.

login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ function init_gui(&$db,$args) {
226226
$gui->oauth[$name] = new stdClass();
227227
$gui->oauth[$name]->name = ucfirst($name);
228228
$gui->oauth[$name]->link = oauth_link($oauth_prov);
229-
$gui->oauth[$name]->icon = $oauth_prov['oauth_icon'];
229+
$gui->oauth[$name]->icon = $name . '.png';
230230
}
231231
}
232232

microsoftoauth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function init_gui(&$db,$args)
151151
$gui->oauth[$name] = new stdClass();
152152
$gui->oauth[$name]->name = ucfirst($name);
153153
$gui->oauth[$name]->link = oauth_link($oauth_prov);
154-
$gui->oauth[$name]->icon = $oauth_prov['oauth_icon'];
154+
$gui->oauth[$name]->icon = $name . '.png';
155155
}
156156
}
157157
$gui->external_password_mgmt = false;

0 commit comments

Comments
 (0)