40 'OAUTH_AMAZON_SECRET',
43 'OAUTH_BITBUCKET_NAME',
45 'OAUTH_BITBUCKET_SECRET',
53 'OAUTH_BITRIX24_NAME',
55 'OAUTH_BITRIX24_SECRET',
65 'OAUTH_BUFFER_SECRET',
68 'OAUTH_DAILYMOTION_NAME',
69 'OAUTH_DAILYMOTION_ID',
70 'OAUTH_DAILYMOTION_SECRET',
73 'OAUTH_DEVIANTART_NAME',
74 'OAUTH_DEVIANTART_ID',
75 'OAUTH_DEVIANTART_SECRET',
80 'OAUTH_DROPBOX_SECRET',
88 'OAUTH_EVEONLINE_NAME',
90 'OAUTH_EVEONLINE_SECRET',
93 'OAUTH_FACEBOOK_NAME',
95 'OAUTH_FACEBOOK_SECRET',
100 'OAUTH_FITBIT_SECRET',
103 'OAUTH_FIVEHUNDREDPX_NAME',
104 'OAUTH_FIVEHUNDREDPX_ID',
105 'OAUTH_FIVEHUNDREDPX_SECRET',
110 'OAUTH_FLICKR_SECRET',
113 'OAUTH_FOURSQUARE_NAME',
114 'OAUTH_FOURSQUARE_ID',
115 'OAUTH_FOURSQUARE_SECRET',
120 'OAUTH_GITHUB_SECRET',
126 'OAUTH_GOOGLE_SECRET',
132 'OAUTH_HUBIC_SECRET',
135 'OAUTH_INSTAGRAM_NAME',
136 'OAUTH_INSTAGRAM_ID',
137 'OAUTH_INSTAGRAM_SECRET',
140 'OAUTH_LINKEDIN_NAME',
142 'OAUTH_LINKEDIN_SECRET',
145 'OAUTH_MAILCHIMP_NAME',
146 'OAUTH_MAILCHIMP_ID',
147 'OAUTH_MAILCHIMP_SECRET',
150 'OAUTH_MICROSOFT_NAME',
151 'OAUTH_MICROSOFT_ID',
152 'OAUTH_MICROSOFT_SECRET',
155 'OAUTH_MICROSOFT2_NAME',
156 'OAUTH_MICROSOFT2_ID',
157 'OAUTH_MICROSOFT2_SECRET',
165 'OAUTH_NETATMO_NAME',
167 'OAUTH_NETATMO_SECRET',
170 'OAUTH_PARROTFLOWERPOWER_NAME',
171 'OAUTH_PARROTFLOWERPOWER_ID',
172 'OAUTH_PARROTFLOWERPOWER_SECRET',
177 'OAUTH_PAYPAL_SECRET',
182 'OAUTH_POCKET_SECRET',
185 'OAUTH_QUICKBOOKS_NAME',
186 'OAUTH_QUICKBOOKS_ID',
187 'OAUTH_QUICKBOOKS_SECRET',
192 'OAUTH_REDDIT_SECRET',
195 'OAUTH_REDMINE_NAME',
197 'OAUTH_REDMINE_SECRET',
200 'OAUTH_RUNKEEPER_NAME',
201 'OAUTH_RUNKEEPER_ID',
202 'OAUTH_RUNKEEPER_SECRET',
205 'OAUTH_SCOOPIT_NAME',
207 'OAUTH_SCOOPIT_SECRET',
210 'OAUTH_SOUNDCLOUD_NAME',
211 'OAUTH_SOUNDCLOUD_ID',
212 'OAUTH_SOUNDCLOUD_SECRET',
215 'OAUTH_SPOTIFY_NAME',
217 'OAUTH_SPOTIFY_SECRET',
222 'OAUTH_STRAVA_SECRET',
225 'OAUTH_STRIPETEST_NAME',
226 'OAUTH_STRIPETEST_ID',
227 'OAUTH_STRIPETEST_SECRET_KEY',
230 'OAUTH_STRIPELIVE_NAME',
231 'OAUTH_STRIPELIVE_ID',
232 'OAUTH_STRIPELIVE_SECRET_KEY',
237 'OAUTH_TUMBLR_SECRET',
240 'OAUTH_TWITTER_NAME',
242 'OAUTH_TWITTER_SECRET',
245 'OAUTH_USTREAM_NAME',
247 'OAUTH_USTREAM_SECRET',
252 'OAUTH_VIMEO_SECRET',
257 'OAUTH_YAHOO_SECRET',
262 'OAUTH_YAMMER_SECRET',
265 'OAUTH_GENERIC_NAME',
267 'OAUTH_GENERIC_SECRET',
283 $supportedoauth2array = array(
284 'OAUTH_GOOGLE_NAME' => array(
285 'callbackfile' =>
'google',
287 'urlforapp' =>
'OAUTH_GOOGLE_DESC',
289 'urlforcredentials' =>
'https://console.developers.google.com/',
290 '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',
291 'returnurl' =>
'/core/modules/oauth/google_oauthcallback.php'
294 if (isModEnabled(
'stripe')) {
295 $supportedoauth2array[
'OAUTH_STRIPETEST_NAME'] = array(
296 'callbackfile' =>
'stripetest',
299 'name' =>
'StripeTest',
300 'urlforcredentials' =>
'https://dashboard.stripe.com/settings/connect',
301 'availablescopes' =>
'read_write',
302 'returnurl' =>
'/core/modules/oauth/stripetest_oauthcallback.php'
304 $supportedoauth2array[
'OAUTH_STRIPELIVE_NAME'] = array(
305 'callbackfile' =>
'stripelive',
308 'name' =>
'StripeLive',
309 'urlforcredentials' =>
'https://dashboard.stripe.com/settings/connect',
310 'availablescopes' =>
'read_write',
311 'returnurl' =>
'/core/modules/oauth/stripelive_oauthcallback.php'
314 $supportedoauth2array[
'OAUTH_GITHUB_NAME'] = array(
315 'callbackfile' =>
'github',
317 'urlforapp' =>
'OAUTH_GITHUB_DESC',
319 'urlforcredentials' =>
'https://github.com/settings/developers',
320 'availablescopes' =>
'user,public_repo',
321 'returnurl' =>
'/core/modules/oauth/github_oauthcallback.php'
324 $supportedoauth2array[
'OAUTH_MICROSOFT_NAME'] = array(
325 'callbackfile' =>
'microsoft',
326 'picto' =>
'microsoft',
327 'urlforapp' =>
'OAUTH_MICROSOFT_DESC',
328 'name' =>
'Microsoft [outlook.office365]',
329 'urlforcredentials' =>
'https://portal.azure.com/',
331 'availablescopes' =>
'openid,offline_access,profile,email,User.Read,https://outlook.office365.com/IMAP.AccessAsUser.All,https://outlook.office365.com/SMTP.Send',
332 'returnurl' =>
'/core/modules/oauth/microsoft_oauthcallback.php'
334 $supportedoauth2array[
'OAUTH_MICROSOFT2_NAME'] = array(
335 'callbackfile' =>
'microsoft2',
336 'picto' =>
'microsoft',
337 'urlforapp' =>
'OAUTH_MICROSOFT2_DESC',
338 'name' =>
'Microsoft [outlook.office]',
339 'urlforcredentials' =>
'https://portal.azure.com/',
341 'availablescopes' =>
'openid,offline_access,profile,email,User.Read,https://outlook.office.com/.default',
342 'returnurl' =>
'/core/modules/oauth/microsoft2_oauthcallback.php'
346 $supportedoauth2array[
'OAUTH_GENERIC_NAME'] = array(
347 'callbackfile' =>
'generic',
348 'picto' =>
'generic',
349 'urlforapp' =>
'OAUTH_GENERIC_DESC',
351 'urlforcredentials' =>
'',
352 'availablescopes' =>
'Standard',
353 'returnurl' =>
'/core/modules/oauth/generic_oauthcallback.php'
356 return $supportedoauth2array;
367 global $langs,
$conf;
372 $head[$h][1] = $langs->trans(
"OAuthServices");
373 $head[$h][2] =
'services';
376 $head[$h][0] =
dol_buildpath(
'/admin/oauthlogintokens.php', 1);
377 $head[$h][1] = $langs->trans(
"TokenManager");
378 $head[$h][2] =
'tokengeneration';
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).
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
getAllOauth2Array()
Return array of possible OAUTH2 services.
getSupportedOauth2Array()
Return array of tabs to use on pages to setup cron module.
oauthadmin_prepare_head()
Return array of tabs to used on pages to setup cron module.