I have an asp.net core application integrated with AAD through MSAL and is hosted in an on premise environment. Now I want to expose the application to few external users and organization through Application Proxy. I have configured Application Proxy Connector as well Proxy service based on the documentation available. When I go to the external url, AAD authentication process completing successfully and then it shows an Internal server error page with following details.
InternalServerError:
This corporate app can't be accessed right now.
Please try again later...
Next Steps
Client request encountered an internal server error.
Azure AD Application Proxy
Status code: InternalServerError
Url: https://dummy-azuretest.msappproxy.net/%3fcode%3d0.AVQAzOA-0l_Sgk2epvvv8zPDX3rzNsczKbRMqPQsw5M3NhpUAAA.AgABAAIAAAD--DLA3VO7QrddgJg7WevrAgDs...
TransactionID: f3f3499f-428e-4dfe-8661-7cce822569b5
ConnectorGroupId: a3b18c82-ea47-41ed-81ee-f7a0b1a998cc
Also there is no error or warning logs in Event Viewer as well.
If I try to test the application using "Test Application" feature available in Enterprise application >> Application Proxy page, I'm getting the same above error. But the diagnostic report contains few more details:
External Url Configuration
The external URL is reachable via the internet and correctly configured.
Azure AD Authentication
The current user has not logged in to Azure AD or is not assigned to the application.
The user may not be logged in to the app or is unassigned to the application.
To fix this problem you can:
Verify that you have logged in to the application at least once before opening the report.
Verify that you have assigned the correct users and groups to the application.
But I'm sure that the user I'm trying to login in is already assigned to this application.
So what could be the issue here? Is there any way I can get more error details?
Any help will be much appreciated.