1
0
Fork 0
mirror of synced 2024-06-14 08:44:49 +12:00

Fixed OAuth issue

This commit is contained in:
Eldad Fux 2020-01-12 01:13:55 +02:00
parent a2f9e7ef99
commit 43dd5c6c2b
3 changed files with 5 additions and 4 deletions

3
.gitignore vendored
View file

@ -4,4 +4,5 @@
/tests/resources/storage/
/.idea/
.DS_Store
.php_cs.cache
.php_cs.cache
.env

View file

@ -75,7 +75,7 @@ return [
],
ROLE_OWNER => [
'label' => 'Owner',
'scopes' => array_merge($admins, []),
'scopes' => array_merge($logged, $admins, []),
],
ROLE_APP => [
'label' => 'Application',

View file

@ -436,8 +436,8 @@ $utopia->get('/v1/account/sessions/oauth/callback/:provider/:projectId')
->desc('OAuth Callback')
->label('error', __DIR__.'/../../views/general/error.phtml')
->label('scope', 'public')
->label('abuse-limit', 50)
->label('abuse-key', 'ip:{ip}')
//->label('abuse-limit', 50)
//->label('abuse-key', 'ip:{ip}')
->label('docs', false)
->param('projectId', '', function () { return new Text(1024); }, 'Project unique ID')
->param('provider', '', function () use ($providers) { return new WhiteList(array_keys($providers)); }, 'OAuth provider')