HI,
It seems the error message "AADSTS9002314: Resource hostname is required" typically indicates that the resource hostname is missing from the request that was sent to Azure Active Directory (AAD) for authentication.
However you can chek below points:
- Make sure that you are using the correct resource hostname for your AAD tenant. This can usually be found in the Azure portal or in the documentation for your application or service.
- Ensure that the client id and secret provided in the request is correct, as it should match with the client id and secret of your application registered in AAD.
- Check that the request is being sent to the correct endpoint. AAD uses different endpoints for different types of requests, such as authentication and token requests.
It's also important to check the time sync on your system with the Azure AD. As if the time is not synced then also it can cause this error.
Hope this helps.
JS
==
Please Accept the answer if the information helped you. This will help us and others in the community as well.