@Jitao Gu - The client_id
you see in the error message (1fec8e78-bce4-4aaf-ab1b-5451cc387264
) is indeed different from the application client ID you registered in Entra (Azure AD). This client_id
is associated with the Microsoft OAuth library, which is used for authentication flows in Microsoft applications
Here are a few steps to troubleshoot and resolve the invalid_client
error:
- Verify Client ID and Secret: Ensure that the client ID and client secret in your application match those registered in Azure AD. Double-check for any typos or mismatches
- Redirect URI: Make sure the redirect URI in your manifest file matches exactly with the one registered in Azure AD. Any discrepancies can cause authentication issues.
- Permissions and Scopes: Verify that the necessary API permissions and scopes are granted to your application in Azure AD. Ensure that the permissions are correctly configured and consented to.
Manifest Configuration: Double-check the configuration in your manifest.json
file to ensure all URLs and settings are correct.
Network and Firewall: Ensure that there are no network or firewall restrictions blocking the authentication endpoints.
Please refer to the Microsoft identity platform documentation for more detailed guidance on configuring and troubleshooting OAuth 2.0 authorization code flow: https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-client-creds-grant-flow
Thanks,
Nivedipa
-----------------------------------------------------------------------------------------------------------
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.