Fixed OAuth issue
This commit is contained in:
parent
a2f9e7ef99
commit
43dd5c6c2b
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -4,4 +4,5 @@
|
|||
/tests/resources/storage/
|
||||
/.idea/
|
||||
.DS_Store
|
||||
.php_cs.cache
|
||||
.php_cs.cache
|
||||
.env
|
|
@ -75,7 +75,7 @@ return [
|
|||
],
|
||||
ROLE_OWNER => [
|
||||
'label' => 'Owner',
|
||||
'scopes' => array_merge($admins, []),
|
||||
'scopes' => array_merge($logged, $admins, []),
|
||||
],
|
||||
ROLE_APP => [
|
||||
'label' => 'Application',
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue