Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, im trying to connect to our customers Sharepoint, i got the OAuth but when test connection it give me this:
{"error_description":"Exception of type 'Microsoft.IdentityModel.Tokens.AudienceUriValidationFailedException' was thrown."}
I saw somewhere customer needs to grant access for the API (Graph) but customer keeps asking about which Azure ad app and ClientID i've got?
Anyone who can this. It's B2B connection. Our own connection works.
Hello!
The AudienceUriValidationFailedException suggests a mismatch between the OAuth token's audience and the expected URI. Ensure the customer has registered the correct Azure AD app and granted permissions for Microsoft Graph API. Verify that the audience URI in your request is https://graph.microsoft.com/ and that the app has the necessary permissions like Sites.Read.All. The customer needs to consent to these permissions in the Azure portal. Provide them with your Azure AD app's Client ID and Directory ID for accurate setup.