feat: updated new Linkedin scopes

This commit is contained in:
Christy Jacob
2020-12-24 18:04:55 +05:30
parent 26d4760dbf
commit d8a0e9bd14
2 changed files with 1 additions and 5 deletions
-4
View File
@@ -292,8 +292,6 @@ App::get('/v1/account/sessions/oauth2/:provider')
$appId = $project->getAttribute('usersOauth2'.\ucfirst($provider).'Appid', '');
$appSecret = $project->getAttribute('usersOauth2'.\ucfirst($provider).'Secret', '{}');
$appSecret = \json_decode($appSecret, true);
if (!empty($appSecret) && isset($appSecret['version'])) {
$key = App::getEnv('_APP_OPENSSL_KEY_V'.$appSecret['version']);
$appSecret = OpenSSL::decrypt($appSecret['data'], $appSecret['method'], $key, 0, \hex2bin($appSecret['iv']), \hex2bin($appSecret['tag']));
@@ -395,8 +393,6 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect')
$appId = $project->getAttribute('usersOauth2'.\ucfirst($provider).'Appid', '');
$appSecret = $project->getAttribute('usersOauth2'.\ucfirst($provider).'Secret', '{}');
$appSecret = \json_decode($appSecret, true);
if (!empty($appSecret) && isset($appSecret['version'])) {
$key = App::getEnv('_APP_OPENSSL_KEY_V'.$appSecret['version']);
$appSecret = OpenSSL::decrypt($appSecret['data'], $appSecret['method'], $key, 0, \hex2bin($appSecret['iv']), \hex2bin($appSecret['tag']));
+1 -1
View File
@@ -15,7 +15,7 @@ class LinkedIn extends OAuth2
* @var array
*/
protected $scopes = [
'r_basicprofile',
'r_liteprofile',
'r_emailaddress',
];