AADSTS65002: Consent between first party application and first party resource must be configured via preauthorization
We are leveraging Power Automate workflows that have an HTTP trigger in our custom SPFx web parts. We are trying to flip these from anonymous access (Anyone) to Someone in the Tenant for security. To do so, we must obtain a Bearer token from the Flow service to pass down to the Power Automate workflow. When we try to do this, we see the following error:
AADSTS65002: Consent between first party application '08e18876-6177-487e-b8b5-cf950c1e598c' and first party resource '7df0a125-d3be-4c96-aa54-591f83ff541c' must be configured via preauthorization - applications owned and operated by Microsoft must get approval from the API owner before requesting tokens for that API.
These GUIDs represent the SharePoint Online Web Client Extensibility and Flow Service enterprise applications in Azure. These enterprise applications are in every tenant. How do we preauthorize consent between these two applications?