繁体   English   中英

Azure API 管理网关中的用户信息如何获取?

[英]How do you get the user info in an Azure API management gateway?

我正在设置一个 Azure API 管理网关,它将由 Azure B2C 租户保护。 I want the API to hit a backend API, get a json response which has an email field and filter the results to only show records that match the current B2C user who has hit the front API. Tl:Dr B2C User -> Azure API - > 后端 API -> B2C 过滤结果 email -> 返回过滤后的结果。

您将能够从 Azure API 的声明中获取用户 email 并将其转发到后端 API。这是一个很好的例子: http://devjourney.com/2017/03/23/extract-in-jwture- -api-管理政策/

暂无
暂无

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

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