Extension:OAuthRateLimiter

The OAuthRateLimiter extension implements an OAuth hook to add ratelimit values to the OAuth JSON Web Token (JWT).

Requirements

 * OAuthRateLimiter relies on the OAuth extension
 * Currently, only mysql and sqlite database backends are supported

Local development
To set up a working test environment follow the instructions below.


 * Follow install instructions for both OAuth and OAuthRateLimiter
 * Generate public and private keys
 * Configure user rights & general params:
 * Follow OAuth registration steps to register an OAuth application. Make sure to choose OAuth 2.0 for OAuth protocol version and to save your consumer and private token for the next steps.
 * Follow OAuth 2.0 authorization steps to authorize the client and get an access_token. Note: requests to  must be a POST.
 * Use a website like https://jwt.io/ to decode the access_token. You should see the default rate limit information from
 * To change a user’s client tier use the maintenance script: . To see the updated ratelimit in the access_token, you’ll need to rerun the OAuth 2.0 authorization steps