27$supportedoauth2array = array(
28 'OAUTH_GOOGLE_NAME'=>array(
'callbackfile' =>
'google',
'picto' =>
'google',
'urlforapp' =>
'OAUTH_GOOGLE_DESC',
'name'=>
'Google',
'urlforcredentials'=>
'https://console.developers.google.com/',
29 'availablescopes'=>
'userinfo_email,userinfo_profile,openid,email,profile,cloud_print,admin_directory_user,gmail_full,contact,https://www.googleapis.com/auth/contacts,https://www.googleapis.com/auth/calendar',
'returnurl'=>
'/core/modules/oauth/google_oauthcallback.php'),
31if (isModEnabled(
'stripe')) {
32 $supportedoauth2array[
'OAUTH_STRIPE_TEST_NAME'] = array(
'callbackfile' =>
'stripetest',
'picto' =>
'stripe',
'urlforapp' =>
'',
'name'=>
'StripeTest',
'urlforcredentials'=>
'',
'availablescopes'=>
'read_write',
'returnurl'=>
'/core/modules/oauth/stripetest_oauthcallback.php');
33 $supportedoauth2array[
'OAUTH_STRIPE_LIVE_NAME'] = array(
'callbackfile' =>
'stripelive',
'picto' =>
'stripe',
'urlforapp' =>
'',
'name'=>
'StripeLive',
'urlforcredentials'=>
'',
'availablescopes'=>
'read_write',
'returnurl'=>
'/core/modules/oauth/stripelive_oauthcallback.php');
35$supportedoauth2array[
'OAUTH_GITHUB_NAME'] = array(
'callbackfile' =>
'github',
'picto' =>
'github',
'urlforapp' =>
'OAUTH_GITHUB_DESC',
'name'=>
'GitHub',
'urlforcredentials'=>
'https://github.com/settings/developers',
'availablescopes'=>
'user,public_repo',
'returnurl'=>
'/core/modules/oauth/github_oauthcallback.php');
36$supportedoauth2array[
'OAUTH_MICROSOFT_NAME'] = array(
'callbackfile' =>
'microsoft',
'picto' =>
'microsoft',
'urlforapp' =>
'OAUTH_MICROSOFT_DESC',
'name'=>
'Microsoft',
'urlforcredentials'=>
'https://portal.azure.com/',
'availablescopes'=>
'openid,offline_access,profile,email,User.Read,https://outlook.office365.com/IMAP.AccessAsUser.All,https://outlook.office365.com/SMTP.Send',
'returnurl'=>
'/core/modules/oauth/microsoft_oauthcallback.php');
38 $supportedoauth2array[
'OAUTH_OTHER_NAME'] = array(
'callbackfile' =>
'generic',
'picto' =>
'generic',
'urlforapp' =>
'OAUTH_OTHER_DESC',
'name'=>
'Other',
'urlforcredentials'=>
'',
'availablescopes'=>
'Standard',
'returnurl'=>
'/core/modules/oauth/generic_oauthcallback.php');
48 'OAUTH_AMAZON_SECRET',
51 'OAUTH_BITBUCKET_NAME',
53 'OAUTH_BITBUCKET_SECRET',
61 'OAUTH_BITRIX24_NAME',
63 'OAUTH_BITRIX24_SECRET',
73 'OAUTH_BUFFER_SECRET',
76 'OAUTH_DAILYMOTION_NAME',
77 'OAUTH_DAILYMOTION_ID',
78 'OAUTH_DAILYMOTION_SECRET',
81 'OAUTH_DEVIANTART_NAME',
82 'OAUTH_DEVIANTART_ID',
83 'OAUTH_DEVIANTART_SECRET',
88 'OAUTH_DROPBOX_SECRET',
96 'OAUTH_EVEONLINE_NAME',
98 'OAUTH_EVEONLINE_SECRET',
101 'OAUTH_FACEBOOK_NAME',
103 'OAUTH_FACEBOOK_SECRET',
108 'OAUTH_FITBIT_SECRET',
111 'OAUTH_FIVEHUNDREDPX_NAME',
112 'OAUTH_FIVEHUNDREDPX_ID',
113 'OAUTH_FIVEHUNDREDPX_SECRET',
118 'OAUTH_FLICKR_SECRET',
121 'OAUTH_FOURSQUARE_NAME',
122 'OAUTH_FOURSQUARE_ID',
123 'OAUTH_FOURSQUARE_SECRET',
128 'OAUTH_GITHUB_SECRET',
134 'OAUTH_GOOGLE_SECRET',
140 'OAUTH_HUBIC_SECRET',
143 'OAUTH_INSTAGRAM_NAME',
144 'OAUTH_INSTAGRAM_ID',
145 'OAUTH_INSTAGRAM_SECRET',
148 'OAUTH_LINKEDIN_NAME',
150 'OAUTH_LINKEDIN_SECRET',
153 'OAUTH_MAILCHIMP_NAME',
154 'OAUTH_MAILCHIMP_ID',
155 'OAUTH_MAILCHIMP_SECRET',
158 'OAUTH_MICROSOFT_NAME',
159 'OAUTH_MICROSOFT_ID',
160 'OAUTH_MICROSOFT_SECRET',
168 'OAUTH_NETATMO_NAME',
170 'OAUTH_NETATMO_SECRET',
173 'OAUTH_PARROTFLOWERPOWER_NAME',
174 'OAUTH_PARROTFLOWERPOWER_ID',
175 'OAUTH_PARROTFLOWERPOWER_SECRET',
180 'OAUTH_PAYPAL_SECRET',
185 'OAUTH_POCKET_SECRET',
188 'OAUTH_QUICKBOOKS_NAME',
189 'OAUTH_QUICKBOOKS_ID',
190 'OAUTH_QUICKBOOKS_SECRET',
195 'OAUTH_REDDIT_SECRET',
198 'OAUTH_REDMINE_NAME',
200 'OAUTH_REDMINE_SECRET',
203 'OAUTH_RUNKEEPER_NAME',
204 'OAUTH_RUNKEEPER_ID',
205 'OAUTH_RUNKEEPER_SECRET',
208 'OAUTH_SCOOPIT_NAME',
210 'OAUTH_SCOOPIT_SECRET',
213 'OAUTH_SOUNDCLOUD_NAME',
214 'OAUTH_SOUNDCLOUD_ID',
215 'OAUTH_SOUNDCLOUD_SECRET',
218 'OAUTH_SPOTIFY_NAME',
220 'OAUTH_SPOTIFY_SECRET',
225 'OAUTH_STRAVA_SECRET',
228 'OAUTH_STRIPE_TEST_NAME',
229 'OAUTH_STRIPE_TEST_ID',
230 'STRIPE_TEST_SECRET_KEY',
233 'OAUTH_STRIPE_LIVE_NAME',
234 'OAUTH_STRIPE_LIVE_ID',
235 'STRIPE_LIVE_SECRET_KEY',
240 'OAUTH_TUMBLR_SECRET',
243 'OAUTH_TWITTER_NAME',
245 'OAUTH_TWITTER_SECRET',
248 'OAUTH_USTREAM_NAME',
250 'OAUTH_USTREAM_SECRET',
255 'OAUTH_VIMEO_SECRET',
260 'OAUTH_YAHOO_SECRET',
265 'OAUTH_YAMMER_SECRET',
270 'OAUTH_OTHER_SECRET',
283 global $langs, $conf;
288 $head[$h][1] = $langs->trans(
"OAuthServices");
289 $head[$h][2] =
'services';
292 $head[$h][0] =
dol_buildpath(
'/admin/oauthlogintokens.php', 1);
293 $head[$h][1] = $langs->trans(
"TokenManager");
294 $head[$h][2] =
'tokengeneration';
getDolGlobalInt($key, $default=0)
Return dolibarr global constant int value.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode='add', $filterorigmodule='')
Complete or removed entries into a head array (used to build tabs).
oauthadmin_prepare_head()
Return array of tabs to used on pages to setup cron module.