A cloud-based identity and access management service for securing user authentication and resource access
The error message you are encountering, unauthorized_client: The client does not exist or is not enabled for consumers, typically indicates that the application you are trying to use is either not registered correctly or is not configured to allow consumer access. Here are some steps you can take to resolve this issue:
- Check Application Registration: Ensure that your application is registered in the Azure portal. You can do this by navigating to the App Registrations section in the Azure portal.
- Supported Account Types: Verify that you have selected the correct supported account types during the registration process. If you want your application to be accessible to consumers, you should select Accounts in any organizational directory and personal Microsoft accounts.
- Application Status: Make sure that the application is enabled and not disabled in the Azure portal.
- Permissions: Ensure that the necessary permissions are granted for your application to access the required resources.
- Client ID and Secret: Double-check that you are using the correct client ID and client secret in your application code. If you registered a public application without a client secret, you may encounter issues when trying to authenticate across different devices.
If you have confirmed all of the above and are still facing issues, consider re-registering the application with the correct settings.
References: