为AAD安全Azure功能端点创建事件订阅 [英] Create Event Subscription To AAD Secured Azure Function Endpoint
问题描述
场景:
我创建了Azure功能,如Func1,它由Azure AD身份验证保护。
我想订阅IotHub设备事件和点他们加入Webhook。
IotHub设备事件:
- DeviceConnected,DeviceCreated等
要求:使用Azure功能as Webhook端点接收IotHub设备事件
问题:
- 是否可以使用AD安全azure功能作为webhook端点。
- 如果是,验证/授权是如何发生的?
- 如果是,我可以使用AD安全Web API作为webhook端点。
是否可以使用AD将azure功能保护为webhook端点:
您可以拥有 HTTP触发器可用作端点并使用EasyAuth通过AD保护它,然后当您从客户端执行GET / POST请求时,您需要传递一个承载令牌才能进行身份验证。
如果是,验证/授权如何发生:
关注文章:
要求:使用Azure功能作为Webhook端点接收IotHub设备事件:
选中
MSDN 论坛,看看是否有帮助。
Scenario:
I have created Azure function say Func1, which is secured by Azure AD authentication.
I want to subscribe for IotHub device events and point them to Webhook.
IotHub device events:
- DeviceConnected, DeviceCreated etc
Requirement: Use Azure function as Webhook endpoint to receive IotHub device events
Questions:
- Is it possible to use AD secured azure function as webhook endpoint.
- If Yes, how does authentication/authorization happens?
- If Yes, Can I use AD secured Web API as webhook endpoint.
Is it possible to use AD secured azure function as webhook endpoint :
You can have a HTTP Trigger which can be used as an endpoint and use EasyAuth to secure it with AD, then when you're doing a GET/POST request from the client side, you'll need to pass a bearer token in order to authenticate.
If Yes, how does authentication/authorization happens :
Follow the articles :
Requirement: Use Azure function as Webhook endpoint to receive IotHub device events :Check this MSDN forum and see if it helps.
这篇关于为AAD安全Azure功能端点创建事件订阅的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!