Go to the documentation of this file.
27 $supportedoauth2array = array(
28 'OAUTH_GOOGLE_NAME'=>array(
'callbackfile' =>
'google',
'picto' =>
'google',
'urlforapp' =>
'OAUTH_GOOGLE_DESC',
'name'=>
'Google',
'urlforcredentials'=>
'https://console.developers.google.com/',
'availablescopes'=>
'userinfo_email,userinfo_profile,openid,email,profile,cloud_print,admin_directory_user,gmail_full',
'returnurl'=>
'/core/modules/oauth/google_oauthcallback.php'),
31 $supportedoauth2array[
'OAUTH_STRIPE_TEST_NAME'] = array(
'callbackfile' =>
'stripetest',
'picto' =>
'stripe',
'urlforapp' =>
'',
'name'=>
'StripeTest',
'urlforcredentials'=>
'',
'availablescopes'=>
'read_write',
'returnurl'=>
'/core/modules/oauth/stripetest_oauthcallback.php');
32 $supportedoauth2array[
'OAUTH_STRIPE_LIVE_NAME'] = array(
'callbackfile' =>
'stripelive',
'picto' =>
'stripe',
'urlforapp' =>
'',
'name'=>
'StripeLive',
'urlforcredentials'=>
'',
'availablescopes'=>
'read_write',
'returnurl'=>
'/core/modules/oauth/stripelive_oauthcallback.php');
34 $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');
35 $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');
37 $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');
47 'OAUTH_AMAZON_SECRET',
50 'OAUTH_BITBUCKET_NAME',
52 'OAUTH_BITBUCKET_SECRET',
60 'OAUTH_BITRIX24_NAME',
62 'OAUTH_BITRIX24_SECRET',
72 'OAUTH_BUFFER_SECRET',
75 'OAUTH_DAILYMOTION_NAME',
76 'OAUTH_DAILYMOTION_ID',
77 'OAUTH_DAILYMOTION_SECRET',
80 'OAUTH_DEVIANTART_NAME',
81 'OAUTH_DEVIANTART_ID',
82 'OAUTH_DEVIANTART_SECRET',
87 'OAUTH_DROPBOX_SECRET',
95 'OAUTH_EVEONLINE_NAME',
97 'OAUTH_EVEONLINE_SECRET',
100 'OAUTH_FACEBOOK_NAME',
102 'OAUTH_FACEBOOK_SECRET',
107 'OAUTH_FITBIT_SECRET',
110 'OAUTH_FIVEHUNDREDPX_NAME',
111 'OAUTH_FIVEHUNDREDPX_ID',
112 'OAUTH_FIVEHUNDREDPX_SECRET',
117 'OAUTH_FLICKR_SECRET',
120 'OAUTH_FOURSQUARE_NAME',
121 'OAUTH_FOURSQUARE_ID',
122 'OAUTH_FOURSQUARE_SECRET',
127 'OAUTH_GITHUB_SECRET',
133 'OAUTH_GOOGLE_SECRET',
139 'OAUTH_HUBIC_SECRET',
142 'OAUTH_INSTAGRAM_NAME',
143 'OAUTH_INSTAGRAM_ID',
144 'OAUTH_INSTAGRAM_SECRET',
147 'OAUTH_LINKEDIN_NAME',
149 'OAUTH_LINKEDIN_SECRET',
152 'OAUTH_MAILCHIMP_NAME',
153 'OAUTH_MAILCHIMP_ID',
154 'OAUTH_MAILCHIMP_SECRET',
157 'OAUTH_MICROSOFT_NAME',
158 'OAUTH_MICROSOFT_ID',
159 'OAUTH_MICROSOFT_SECRET',
167 'OAUTH_NETATMO_NAME',
169 'OAUTH_NETATMO_SECRET',
172 'OAUTH_PARROTFLOWERPOWER_NAME',
173 'OAUTH_PARROTFLOWERPOWER_ID',
174 'OAUTH_PARROTFLOWERPOWER_SECRET',
179 'OAUTH_PAYPAL_SECRET',
184 'OAUTH_POCKET_SECRET',
187 'OAUTH_QUICKBOOKS_NAME',
188 'OAUTH_QUICKBOOKS_ID',
189 'OAUTH_QUICKBOOKS_SECRET',
194 'OAUTH_REDDIT_SECRET',
197 'OAUTH_REDMINE_NAME',
199 'OAUTH_REDMINE_SECRET',
202 'OAUTH_RUNKEEPER_NAME',
203 'OAUTH_RUNKEEPER_ID',
204 'OAUTH_RUNKEEPER_SECRET',
207 'OAUTH_SCOOPIT_NAME',
209 'OAUTH_SCOOPIT_SECRET',
212 'OAUTH_SOUNDCLOUD_NAME',
213 'OAUTH_SOUNDCLOUD_ID',
214 'OAUTH_SOUNDCLOUD_SECRET',
217 'OAUTH_SPOTIFY_NAME',
219 'OAUTH_SPOTIFY_SECRET',
224 'OAUTH_STRAVA_SECRET',
227 'OAUTH_STRIPE_TEST_NAME',
228 'OAUTH_STRIPE_TEST_ID',
229 'STRIPE_TEST_SECRET_KEY',
232 'OAUTH_STRIPE_LIVE_NAME',
233 'OAUTH_STRIPE_LIVE_ID',
234 'STRIPE_LIVE_SECRET_KEY',
239 'OAUTH_TUMBLR_SECRET',
242 'OAUTH_TWITTER_NAME',
244 'OAUTH_TWITTER_SECRET',
247 'OAUTH_USTREAM_NAME',
249 'OAUTH_USTREAM_SECRET',
254 'OAUTH_VIMEO_SECRET',
259 'OAUTH_YAHOO_SECRET',
264 'OAUTH_YAMMER_SECRET',
269 'OAUTH_OTHER_SECRET',
282 global $langs, $conf;
287 $head[$h][1] = $langs->trans(
"OAuthServices");
288 $head[$h][2] =
'services';
291 $head[$h][0] =
dol_buildpath(
'/admin/oauthlogintokens.php', 1);
292 $head[$h][1] = $langs->trans(
"TokenManager");
293 $head[$h][2] =
'tokengeneration';
oauthadmin_prepare_head()
Return array of tabs to used on pages to setup cron module.
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).
isModEnabled($module)
Is Dolibarr module enabled.
getDolGlobalInt($key, $default=0)
Return dolibarr global constant int value.