@Omar Nisar An internal server error can occur due to a variety of reasons, such as incorrect configuration settings or issues with the authentication provider. Here are a few things you can try to troubleshoot the issue:
- Ensure the Azure portal has the authentication provider settings are configured correctly. Make sure that the redirect URIs and client IDs are correct.
- See if the logs for any error messages or exceptions that may provide more information about the issue. You can view the logs in the Azure portal or in the application's diagnostic logs.
- Try using a different Microsoft account to see if the issue persists. This can help determine if the issue is specific to the account or if it's a more general issue.