Skip to content

Commit

Permalink
Fixed OAuth issue
Browse files Browse the repository at this point in the history
  • Loading branch information
eldadfux committed Jan 11, 2020
1 parent a2f9e7e commit 43dd5c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
/tests/resources/storage/
/.idea/
.DS_Store
.php_cs.cache
.php_cs.cache
.env
2 changes: 1 addition & 1 deletion app/config/roles.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
],
ROLE_OWNER => [
'label' => 'Owner',
'scopes' => array_merge($admins, []),
'scopes' => array_merge($logged, $admins, []),
],
ROLE_APP => [
'label' => 'Application',
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/api/account.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ function ($provider, $success, $failure) use ($response, $request, $project) {
->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')
Expand Down

0 comments on commit 43dd5c6

Please sign in to comment.