Hello All,
I am also facing a similar issue. Since we upgraded our ArcGIS Enterprise from 10.9 to 11.1, application using OAuth can no longer authenticate.
The issue is that my app is configured to use the 'axsRTsjGjdT' appId for Esri's OAuth for authorization. When the authentication is initiated from dev.mydomain.com endpoint, the appId changes to 'arcgisonline'. It works well when the authentication is initiated from the AppService Endpoint or the Test Endpoint.
App Service Endpoint: myapp.azurewebsites.net
Dev Domain: https://dev.mydomain.com/myapp/
Test Domain: https://test.mydomain.com/myapp/
Portal for ArcGIS: https://dev.mydomain.com/portal/
Note: Both endpoints are pointing to the same app service are configured to use same Portal for troubleshooting.
Technology stack:
Application - Built in ReactJS and hosted on Azure App Service (App Service plan/PremiumV2 (P2v2)).
Portal for ArcGIS: Enterprise 11.1
The listers, backend settings, pools, rules, and rewrites are configured in the Application Gateway to allow access to this AppService & Portal for ArcGIS.
Thanks,
Bobba