mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
feat: updated new Linkedin scopes
This commit is contained in:
1 parent
26d4760dbf
commit
d8a0e9bd14
2 files changed
+1
-5
No files matched your search
@@ -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']));
|
||||
|
||||
@@ -15,7 +15,7 @@ class LinkedIn extends OAuth2
|
||||
* @var array
|
||||
*/
|
||||
protected $scopes = [
|
||||
'r_basicprofile',
|
||||
'r_liteprofile',
|
||||
'r_emailaddress',
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user