I have made multiple attempts to connect to web services from PowerApps/Automate with no success. These are REST web services that do not require authentication and are properly configured for CORS.
This is not the only post outlining this problem Error testing custom connector in GCC , however, that post is not resolved.
The Error is always "Error from token exchange: Bad authorization token. The access token is from wrong audience or resource." It appears that Azure is wanting some type of token: if anyone can direct me to instructions to getting this token that would be appreciated.
REQUEST
Url
https://power-apis-usgov001-public.azure-apihub.us/apim/chroniclingamerica-5fba9ec1947e27bf66-5fdfec2ccf1cb2230a/7ce5b3521bdd42a29f5983141f979bc0/search/titles/results?terms=michigan&format=json
Method
get
Headers
{
"Authorization": "Bearer eyJ0eXAiOiJKV1QiL ... _ynAj_CQyBYGw",
"Accept": "application/json"
}
RESPONSE
Status
(400)
Headers
{
"content-length": "336",
"content-type": "application/json",
"x-ms-failure-cause": "apihub-token-exchange",
"x-ms-apihub-cached-response": "false"
}
Body
{
"status": 400,
"source": "https://power-apis-usgov001-public.token.azure-apihub.us:443/tokens/power-apis-usgov001-public/chroniclingamerica-5Fba9ec1947e27bf66-5Fdfec2ccf1cb2230a/7ce5b3521bdd42a29f5983141f979bc0/exchange",
"message": "Error from token exchange: Bad authorization token. The access token is from wrong audience or resource."
}