Hello,
I have created a custom connector in power apps (via a Copilot Studio) to be able to connect to my app service in Azure.
The connection works as long as there is no authentication. However, it starts failing as soon as authentication is enforced. Authentication is OAuth2.0 which is calling App registration in Azure.
The API call fails with the below error but the app registration has granted access for Microsoft Graph (User.Read) already.
"AADSTS90008: The user or administrator has not consented to use the application with ID '<<App ID>>'(App ID Name).
This happened because application is misconfigured: it must require access to Microsoft Graph by specifying at least 'Sign"
Could you please help with this issue? Also, I'm using the same app registration both for my app service and the custom connector.
Below are the connection settings
1. Authentication Type OAuth 2.0
2. Identity provider: Azure Active Directory
3. Client ID: App registration ID from Azure
4. Secret Options: Use Managed Identity
6. Tenant ID: tenant id from Azure
7. Resource URL: api://clientID
8. Enable on-behalf-of login: True
9. Scope: api://<<clientID>>/.default
Once the connection is created, I have updated the 'Redirect URL' and 'Managed Identity' that gets generated in the connector as needed into the azure app registration.
Please let me know if I'm missing anything.