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/
|
/tests/resources/storage/
|
||||||
/.idea/
|
/.idea/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.php_cs.cache
|
.php_cs.cache
|
||||||
|
.env
|
|
@ -75,7 +75,7 @@ return [
|
||||||
],
|
],
|
||||||
ROLE_OWNER => [
|
ROLE_OWNER => [
|
||||||
'label' => 'Owner',
|
'label' => 'Owner',
|
||||||
'scopes' => array_merge($admins, []),
|
'scopes' => array_merge($logged, $admins, []),
|
||||||
],
|
],
|
||||||
ROLE_APP => [
|
ROLE_APP => [
|
||||||
'label' => 'Application',
|
'label' => 'Application',
|
||||||
|
|
|
@ -436,8 +436,8 @@ $utopia->get('/v1/account/sessions/oauth/callback/:provider/:projectId')
|
||||||
->desc('OAuth Callback')
|
->desc('OAuth Callback')
|
||||||
->label('error', __DIR__.'/../../views/general/error.phtml')
|
->label('error', __DIR__.'/../../views/general/error.phtml')
|
||||||
->label('scope', 'public')
|
->label('scope', 'public')
|
||||||
->label('abuse-limit', 50)
|
//->label('abuse-limit', 50)
|
||||||
->label('abuse-key', 'ip:{ip}')
|
//->label('abuse-key', 'ip:{ip}')
|
||||||
->label('docs', false)
|
->label('docs', false)
|
||||||
->param('projectId', '', function () { return new Text(1024); }, 'Project unique ID')
|
->param('projectId', '', function () { return new Text(1024); }, 'Project unique ID')
|
||||||
->param('provider', '', function () use ($providers) { return new WhiteList(array_keys($providers)); }, 'OAuth provider')
|
->param('provider', '', function () use ($providers) { return new WhiteList(array_keys($providers)); }, 'OAuth provider')
|
||||||
|
|
Loading…
Reference in a new issue