How to set Bearer token authentication between system topic and B2 service with Event as webhook
I want to set the push delivery mode by using system grid, the flow will be like: event hub ->system topic->webhook, so when new data ingested into eventhub, it will be pushed to the webhook directly. I will set microsoft B2 service as the webhook endpoint. I already created an enterprise application, and enabled microsoft identity auth when create the system topic, but the token received by the B2 service only contain basic info like below, so the question is:
- How to set the token with the right permission like, mail.ReadWrite?
I already set the api permission with it, but not working
The fficial doc I followed: https://learn.microsoft.com/en-us/azure/event-grid/security-authentication#authenticate-event-delivery-to-webhook-endpoints
https://learn.microsoft.com/en-us/azure/event-grid/secure-webhook-delivery#deliver-events-to-a-webhook-in-a-different-azure-ad-tenant