ThreeMammals/Ocelot

Claim-based rate limiting

Open

#1587 aperta il 18 lug 2022

Vedi su GitHub
 (8 commenti) (0 reazioni) (0 assegnatari)C# (1617 fork)batch import
AuthenticationRate Limitingacceptedfeaturehelp wantedproposal

Metriche repository

Star
 (8137 star)
Metriche merge PR
 (Merge medio 10g 13h) (4 PR mergiate in 30 g)

Descrizione

New Feature

Extracting claims from the token and use as a Client ID in the rate limiting. Suggesting a new feature to implement the rate limiting based on the claims in the token.

Motivation for New Feature

Current rate limiting is based on the Client ID passed in the header from the request. There are chances that anyone can manipulate the request by updating headers and using APIs without any restriction.

So, instead of depending on the consumer to provide the Client ID in the header, we can use the claims from the token. Which is more secure and not modifiable. Considering this, a rate limit will be applicable for authenticated endpoints only.

Specifications

  • Version: 18.1.0
  • Platform: .NET 6

Guida contributor