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'),
31 $supportedoauth2array[
'OAUTH_STRIPE_TEST_NAME'] = array(
'callbackfile' =>
'stripetest',
'picto' =>
'stripe',
'urlforapp' =>
'',
'name'=>
'StripeTest',
'urlforcredentials'=>
'',
'availablescopes'=>
'read_write');
32 $supportedoauth2array[
'OAUTH_STRIPE_LIVE_NAME'] = array(
'callbackfile' =>
'stripelive',
'picto' =>
'stripe',
'urlforapp' =>
'',
'name'=>
'StripeLive',
'urlforcredentials'=>
'',
'availablescopes'=>
'read_write');
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');
36 $supportedoauth2array[
'OAUTH_OTHER_NAME'] = array(
'callbackfile' =>
'generic',
'picto' =>
'generic',
'urlforapp' =>
'OAUTH_OTHER_DESC',
'name'=>
'Other',
'urlforcredentials'=>
'',
'availablescopes'=>
'Standard');
45 'OAUTH_AMAZON_SECRET',
48 'OAUTH_BITBUCKET_NAME',
50 'OAUTH_BITBUCKET_SECRET',
58 'OAUTH_BITRIX24_NAME',
60 'OAUTH_BITRIX24_SECRET',
70 'OAUTH_BUFFER_SECRET',
73 'OAUTH_DAILYMOTION_NAME',
74 'OAUTH_DAILYMOTION_ID',
75 'OAUTH_DAILYMOTION_SECRET',
78 'OAUTH_DEVIANTART_NAME',
79 'OAUTH_DEVIANTART_ID',
80 'OAUTH_DEVIANTART_SECRET',
85 'OAUTH_DROPBOX_SECRET',
93 'OAUTH_EVEONLINE_NAME',
95 'OAUTH_EVEONLINE_SECRET',
98 'OAUTH_FACEBOOK_NAME',
100 'OAUTH_FACEBOOK_SECRET',
105 'OAUTH_FITBIT_SECRET',
108 'OAUTH_FIVEHUNDREDPX_NAME',
109 'OAUTH_FIVEHUNDREDPX_ID',
110 'OAUTH_FIVEHUNDREDPX_SECRET',
115 'OAUTH_FLICKR_SECRET',
118 'OAUTH_FOURSQUARE_NAME',
119 'OAUTH_FOURSQUARE_ID',
120 'OAUTH_FOURSQUARE_SECRET',
125 'OAUTH_GITHUB_SECRET',
131 'OAUTH_GOOGLE_SECRET',
137 'OAUTH_HUBIC_SECRET',
140 'OAUTH_INSTAGRAM_NAME',
141 'OAUTH_INSTAGRAM_ID',
142 'OAUTH_INSTAGRAM_SECRET',
145 'OAUTH_LINKEDIN_NAME',
147 'OAUTH_LINKEDIN_SECRET',
150 'OAUTH_MAILCHIMP_NAME',
151 'OAUTH_MAILCHIMP_ID',
152 'OAUTH_MAILCHIMP_SECRET',
155 'OAUTH_MICROSOFT_NAME',
156 'OAUTH_MICROSOFT_ID',
157 'OAUTH_MICROSOFT_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_STRIPE_TEST_NAME',
226 'OAUTH_STRIPE_TEST_ID',
227 'STRIPE_TEST_SECRET_KEY',
230 'OAUTH_STRIPE_LIVE_NAME',
231 'OAUTH_STRIPE_LIVE_ID',
232 'STRIPE_LIVE_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',
267 'OAUTH_OTHER_SECRET',
280 global $langs, $conf;
285 $head[$h][1] = $langs->trans(
"OAuthServices");
286 $head[$h][2] =
'services';
289 $head[$h][0] =
dol_buildpath(
'/admin/oauthlogintokens.php', 1);
290 $head[$h][1] = $langs->trans(
"TokenManager");
291 $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).
isModEnabled($module)
Is Dolibarr module enabled.
oauthadmin_prepare_head()
Return array of tabs to used on pages to setup cron module.