forked from Wavyzz/dolibarr
Clean OAuth feature
This commit is contained in:
@@ -25,13 +25,13 @@
|
||||
|
||||
// Supported OAUTH (a provider is supported when a file xxx_oauthcallback.php is available into htdocs/core/modules/oauth)
|
||||
$supportedoauth2array = array(
|
||||
'OAUTH_GOOGLE_NAME'=>'google',
|
||||
'OAUTH_GOOGLE_NAME'=>array('callbackfile' => 'google', 'picto' => 'google', 'urlforapp' => 'OAUTH_GOOGLE_DESC', 'name'=>'Google'),
|
||||
);
|
||||
if ($conf->global->MAIN_FEATURES_LEVEL >= 2) {
|
||||
$supportedoauth2array['OAUTH_STRIPE_TEST_NAME'] = 'stripetest';
|
||||
$supportedoauth2array['OAUTH_STRIPE_LIVE_NAME'] = 'stripelive';
|
||||
if (!empty($conf->stripe->enabled)) {
|
||||
$supportedoauth2array['OAUTH_STRIPE_TEST_NAME'] = array('callbackfile' => 'stripetest', 'picto' => 'stripe', 'urlforapp' => '', 'name'=>'StripeTest');
|
||||
$supportedoauth2array['OAUTH_STRIPE_LIVE_NAME'] = array('callbackfile' => 'stripelive', 'picto' => 'stripe', 'urlforapp' => '', 'name'=>'StripeLive');
|
||||
}
|
||||
$supportedoauth2array['OAUTH_GITHUB_NAME'] = 'github';
|
||||
$supportedoauth2array['OAUTH_GITHUB_NAME'] = array('callbackfile' => 'github', 'picto' => 'github', 'urlforapp' => 'OAUTH_GITHUB_DESC', 'name'=>'GitHub');
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user