
Announcements
Hi,
The error you're encountering indicates that the claims in your access token don't fully align with the requirements of the target service. Specifically, Open Authentication (OAuth) policies enforced by the endpoint may reject the request if claims like aud, iss, or tid are missing or mismatched. Let’s walk through potential causes and resolutions for the issue.
https://service.flow.microsoft.com/. Ensure that your API call aligns with this.Verify that the token includes these claims:
aud, iss, and tid. If they are present, ensure they match the expected values for the target endpoint.https://service.flow.microsoft.com//.default includes an extra /, which might cause issues.Use the corrected scope when requesting the token.
Confirm the following:
API Permissions: Verify that your Azure AD app registration has the correct API permissions for the service you're trying to access.
https://service.flow.microsoft.com/ is listed.Tenant-Specific Issues: If you're working in a multi-tenant setup, confirm that the token's tid matches the tenant where the app is registered.
If the token seems correct but the error persists, debug the token request itself:
Token Request Endpoint:
{tenant-id} with your Azure AD tenant ID.Token Request Body:
Inspect Token Response:
API Documentation: Check the API's documentation to confirm required claims and scopes.
HTTP Headers: Ensure you're passing the token correctly in the Authorization header:
Check for Logs: Look for logs in the Azure Portal or target service to gain insights into the rejection reason.
https://service.flow.microsoft.com/.default.If you provide more specifics (e.g., decoded token claims or API details), I can help refine the troubleshooting further!
----------------------------------------------------------------------------------
If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!