ThreeMammals/Ocelot

Claim-based rate limiting

Open

#1,587 创建于 2022年7月18日

在 GitHub 查看
 (8 评论) (0 反应) (0 负责人)C# (8,137 star) (1,617 fork)batch import
AuthenticationRate Limitingacceptedfeaturehelp wantedproposal

描述

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

贡献者指南