I have an Azure service using Azure Active Directory for authentication/authorization. I am trying to set up a google action fulfillment (using a webhook) to access this service for information regarding the user. Trying to use Account Linking
for this.
The issue is I am not receiving an access token in my service when the action fulfillment makes the call via the webhook. It is supposed to be in the request body inside the User
object. So I'm always getting a 401
response.
It seems the fulfillment expects to authenticate itself using the signed in google user's account via OAuth (correct me if I'm wrong). However, I'd like my service to authenticate each fulfillment request using a single Azure AD account, and not each individual google user account. My Azure AD has no knowledge of google users.
How would I achieve this? I have configured Account Linking
to use OAuth using my service's secret and appId, etc. The setup is correct on the Azure side, since I can retrieve a valid token using Postman for eg.