ThreeMammals/Ocelot

Claim-based rate limiting

Open

#1.587 geöffnet am 18. Juli 2022

Auf GitHub ansehen
 (8 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (1.617 Forks)batch import
AuthenticationRate Limitingacceptedfeaturehelp wantedproposal

Repository-Metriken

Stars
 (8.137 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 10T 13h) (4 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide