mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fixed OAuth issue
This commit is contained in:
+2
-1
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user