A
A
Alexander Shapoval2017-01-06 01:31:01
Laravel
Alexander Shapoval, 2017-01-06 01:31:01

Laravel API Rate Limits. Can I limit the number of requests per account?

Started making API using "API Authentication (Passport)".
https://laravel.com/docs/5.3/passport
I think how can I limit the number of API requests using 'throttle', but per oauth token?
If a person has ten tokens - let it be, the main thing is that the number of requests is not exceeded.
Tell me, in which direction to dig? Maybe there are articles or specific keywords for which they can be found?
Thank you for your help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2017-01-06
@beatleboy

A good solution would be to use anti-flood, it allows you to use any keys, be it ip, token. Ideally, wrap everything in middleware
https://github.com/ircop/antiflood/blob/master/REA...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question