Azure Front Door能在将请求发送到后端服务之前验证Azure AD JWT吗?

huangapple go评论44阅读模式
英文:

Can Azure Front Door authenticate a Azure AD JWT before sending the request to the backend service?

问题

我们计划使用FD作为多个后端应用程序的反向代理。如果授权头部包含有效的JWT,我们只想将请求发送到后端。
(类似于APIM的validate-jwt策略)

在Front Door中是否可能实现这一点?或者有更好的方法来实现这一目标。

谢谢
Stefan

英文:

we are planning to use FD to act as an reverse proxy to several backend apps. We would like to only send the request to the backend if the Authorization Header has a valid JWT.
(similar to the APIM validate-jwt policy)

Is this possible in Front Door? Or is there a better way to achieve this.

Thanks
Stefan

答案1

得分: 0

你可以使用Azure前端门户规则引擎来检查授权标头是否包含类似有效JWT的内容,但它没有能力像API管理策略那样实际验证令牌。如果标头匹配类似有效令牌的内容,你可以将其转发到相应的后端。如果看起来不包含有效令牌,你可以将请求发送到适当的站点以获取JWT。

英文:

You can use the Azure Front Door rules engine to check to see if the authorization header contains something that looks like a valid JWT, but it won't have the ability to actually validate the token like the API Managment policy can. If the header match something that looks like a valid token you can forward it on to the proper backend. If it doesn't look like it contains a valid token you can send the request to the appropriate site to get a JWT.

huangapple
  • 本文由 发表于 2023年6月22日 15:25:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/76529484.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定