简体   繁体   English

具有API密钥和速率限制的Spring RestAPI

[英]Spring RestAPI with API key and Rate limiting

I just want to know certain things on Rest API to secure with api key and rate limiting on the rest api key for each api key. 我只想知道Rest API上的某些内容,以使用api密钥和每个api密钥的rest api密钥进行速率限制来确保安全。

What is the best solution for setting api key for a rest api and how to limit the access to the rest api for each api keys on a time periodic?. 为REST API设置API密钥的最佳解决方案是什么?如何在一个时间周期内限制每个API Key对REST API的访问?

我建议您检查此项目https://github.com/UsedRarely/spring-rate-limit ,该项目可让您通过java批注对特定服务/控制器启用速率限制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM