1
0
Fork 0
mirror of synced 2024-07-01 04:30:59 +12:00

feat: added abuse checks as per review

This commit is contained in:
Christy Jacob 2020-01-13 09:57:49 +05:30
parent ecae436f4f
commit 563ea1363c

View file

@ -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.')