feat: added abuse checks as per review
This commit is contained in:
parent
ecae436f4f
commit
563ea1363c
1 changed files with 2 additions and 2 deletions
|
@ -396,8 +396,8 @@ $utopia->get('/v1/auth/login/oauth/:provider')
|
|||
->label('sdk.description', '/docs/references/auth/login-oauth.md')
|
||||
->label('sdk.location', true)
|
||||
->label('sdk.cookies', true)
|
||||
// ->label('abuse-limit', 100)
|
||||
// ->label('abuse-key', 'ip:{ip}')
|
||||
->label('abuse-limit', 50)
|
||||
->label('abuse-key', 'ip:{ip}')
|
||||
->param('provider', '', function () use ($providers) { return new WhiteList(array_keys($providers)); }, 'OAuth Provider. Currently, supported providers are: ' . implode(', ', array_keys($providers)))
|
||||
->param('success', '', function () use ($clients) { return new Host($clients); }, 'URL to redirect back to your app after a successful login attempt.')
|
||||
->param('failure', '', function () use ($clients) { return new Host($clients); }, 'URL to redirect back to your app after a failed login attempt.')
|
||||
|
|
Loading…
Reference in a new issue