[英]Validate JWT token in python API with keycloak
I am building a python flask API. The requests are sent from the UI and they include an already authorized JWT token in the header (as expected bearer token).我正在构建一个 python flask API。请求是从 UI 发送的,它们在 header 中包含一个已经授权的 JWT 令牌(如预期的承载令牌)。
My API service needs to validate the token and extract the tenant from the token.我的 API 服务需要验证令牌并从令牌中提取租户。
I have a few questions about how a solution like that usually works.我有几个关于这样的解决方案通常如何运作的问题。
Thank you谢谢
Here are some answers.这里有一些答案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.