39 'OAUTH_AMAZON_SECRET',
42 'OAUTH_BITBUCKET_NAME',
44 'OAUTH_BITBUCKET_SECRET',
52 'OAUTH_BITRIX24_NAME',
54 'OAUTH_BITRIX24_SECRET',
64 'OAUTH_BUFFER_SECRET',
67 'OAUTH_DAILYMOTION_NAME',
68 'OAUTH_DAILYMOTION_ID',
69 'OAUTH_DAILYMOTION_SECRET',
72 'OAUTH_DEVIANTART_NAME',
73 'OAUTH_DEVIANTART_ID',
74 'OAUTH_DEVIANTART_SECRET',
79 'OAUTH_DROPBOX_SECRET',
87 'OAUTH_EVEONLINE_NAME',
89 'OAUTH_EVEONLINE_SECRET',
92 'OAUTH_FACEBOOK_NAME',
94 'OAUTH_FACEBOOK_SECRET',
99 'OAUTH_FITBIT_SECRET',
102 'OAUTH_FIVEHUNDREDPX_NAME',
103 'OAUTH_FIVEHUNDREDPX_ID',
104 'OAUTH_FIVEHUNDREDPX_SECRET',
109 'OAUTH_FLICKR_SECRET',
112 'OAUTH_FOURSQUARE_NAME',
113 'OAUTH_FOURSQUARE_ID',
114 'OAUTH_FOURSQUARE_SECRET',
119 'OAUTH_GITHUB_SECRET',
125 'OAUTH_GOOGLE_SECRET',
131 'OAUTH_HUBIC_SECRET',
134 'OAUTH_INSTAGRAM_NAME',
135 'OAUTH_INSTAGRAM_ID',
136 'OAUTH_INSTAGRAM_SECRET',
139 'OAUTH_LINKEDIN_NAME',
141 'OAUTH_LINKEDIN_SECRET',
144 'OAUTH_MAILCHIMP_NAME',
145 'OAUTH_MAILCHIMP_ID',
146 'OAUTH_MAILCHIMP_SECRET',
149 'OAUTH_MICROSOFT_NAME',
150 'OAUTH_MICROSOFT_ID',
151 'OAUTH_MICROSOFT_SECRET',
159 'OAUTH_NETATMO_NAME',
161 'OAUTH_NETATMO_SECRET',
164 'OAUTH_PARROTFLOWERPOWER_NAME',
165 'OAUTH_PARROTFLOWERPOWER_ID',
166 'OAUTH_PARROTFLOWERPOWER_SECRET',
171 'OAUTH_PAYPAL_SECRET',
176 'OAUTH_POCKET_SECRET',
179 'OAUTH_QUICKBOOKS_NAME',
180 'OAUTH_QUICKBOOKS_ID',
181 'OAUTH_QUICKBOOKS_SECRET',
186 'OAUTH_REDDIT_SECRET',
189 'OAUTH_REDMINE_NAME',
191 'OAUTH_REDMINE_SECRET',
194 'OAUTH_RUNKEEPER_NAME',
195 'OAUTH_RUNKEEPER_ID',
196 'OAUTH_RUNKEEPER_SECRET',
199 'OAUTH_SCOOPIT_NAME',
201 'OAUTH_SCOOPIT_SECRET',
204 'OAUTH_SOUNDCLOUD_NAME',
205 'OAUTH_SOUNDCLOUD_ID',
206 'OAUTH_SOUNDCLOUD_SECRET',
209 'OAUTH_SPOTIFY_NAME',
211 'OAUTH_SPOTIFY_SECRET',
216 'OAUTH_STRAVA_SECRET',
219 'OAUTH_STRIPE_TEST_NAME',
220 'OAUTH_STRIPE_TEST_ID',
221 'STRIPE_TEST_SECRET_KEY',
224 'OAUTH_STRIPE_LIVE_NAME',
225 'OAUTH_STRIPE_LIVE_ID',
226 'STRIPE_LIVE_SECRET_KEY',
231 'OAUTH_TUMBLR_SECRET',
234 'OAUTH_TWITTER_NAME',
236 'OAUTH_TWITTER_SECRET',
239 'OAUTH_USTREAM_NAME',
241 'OAUTH_USTREAM_SECRET',
246 'OAUTH_VIMEO_SECRET',
251 'OAUTH_YAHOO_SECRET',
256 'OAUTH_YAMMER_SECRET',
261 'OAUTH_OTHER_SECRET',
277 $supportedoauth2array = array(
278 'OAUTH_GOOGLE_NAME' => array(
279 'callbackfile' =>
'google',
281 'urlforapp' =>
'OAUTH_GOOGLE_DESC',
283 'urlforcredentials' =>
'https://console.developers.google.com/',
284 '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',
285 'returnurl' =>
'/core/modules/oauth/google_oauthcallback.php'
288 if (isModEnabled(
'stripe')) {
289 $supportedoauth2array[
'OAUTH_STRIPE_TEST_NAME'] = array(
290 'callbackfile' =>
'stripetest',
293 'name' =>
'StripeTest',
294 'urlforcredentials' =>
'https://dashboard.stripe.com/settings/connect',
295 'availablescopes' =>
'read_write',
296 'returnurl' =>
'/core/modules/oauth/stripetest_oauthcallback.php'
298 $supportedoauth2array[
'OAUTH_STRIPE_LIVE_NAME'] = array(
299 'callbackfile' =>
'stripelive',
302 'name' =>
'StripeLive',
303 'urlforcredentials' =>
'https://dashboard.stripe.com/settings/connect',
304 'availablescopes' =>
'read_write',
305 'returnurl' =>
'/core/modules/oauth/stripelive_oauthcallback.php'
308 $supportedoauth2array[
'OAUTH_GITHUB_NAME'] = array(
309 'callbackfile' =>
'github',
311 'urlforapp' =>
'OAUTH_GITHUB_DESC',
313 'urlforcredentials' =>
'https://github.com/settings/developers',
314 'availablescopes' =>
'user,public_repo',
315 'returnurl' =>
'/core/modules/oauth/github_oauthcallback.php'
318 $supportedoauth2array[
'OAUTH_MICROSOFT_NAME'] = array(
319 'callbackfile' =>
'microsoft',
320 'picto' =>
'microsoft',
321 'urlforapp' =>
'OAUTH_MICROSOFT_DESC',
322 'name' =>
'Microsoft',
323 'urlforcredentials' =>
'https://portal.azure.com/',
325 'availablescopes' =>
'openid,offline_access,profile,email,User.Read,https://outlook.office365.com/IMAP.AccessAsUser.All,https://outlook.office365.com/SMTP.Send',
326 'returnurl' =>
'/core/modules/oauth/microsoft_oauthcallback.php'
329 $supportedoauth2array[
'OAUTH_OTHER_NAME'] = array(
330 'callbackfile' =>
'generic',
331 'picto' =>
'generic',
332 'urlforapp' =>
'OAUTH_OTHER_DESC',
334 'urlforcredentials' =>
'',
335 'availablescopes' =>
'Standard',
336 'returnurl' =>
'/core/modules/oauth/generic_oauthcallback.php'
340 return $supportedoauth2array;
351 global $langs, $conf;
356 $head[$h][1] = $langs->trans(
"OAuthServices");
357 $head[$h][2] =
'services';
360 $head[$h][0] =
dol_buildpath(
'/admin/oauthlogintokens.php', 1);
361 $head[$h][1] = $langs->trans(
"TokenManager");
362 $head[$h][2] =
'tokengeneration';
getDolGlobalInt($key, $default=0)
Return a 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).
getAllOauth2Array()
Return array of possible OAUTH2 services.
getSupportedOauth2Array()
Return array of tabs to used on pages to setup cron module.
oauthadmin_prepare_head()
Return array of tabs to used on pages to setup cron module.