Hello everyone,
I am getting the error message below. I am getting this error every time I deploy an WAB/ASP.net application. I was able fix it before but now I am having trouble finding the reason why it is not working.
Error: Invalid redirect_uri
| ArcGIS Portal Directory | Home | |
Invalid redirect_uri
Error: 400This error happens when I deploy my WAB application to a new server, in this case the staging server. Before I was able to fix this issue changing the IIS authentication settings.
This is what I am doing:
- create application in Web Application Builder in my workstation,
- download the application locally, create a virtual directory in IIS in my workstation pointing to it
- open the web application with Visual Studio 2012, using the option "Open web Site" and customize it in my workstation
- with Visual Studio 2012, publish the application on the staging server
- In the staging server with IIS:
. Create IIS virtual directory
. Add application
. In the authentication settings enable Anonymous and Windows authentication
. Under Edit Permissions, Security tab, created account IIS_IUSRS
.
When calling the web application:
- http://[stagingserver]/myapplication it opens, but after clicking OK on "Please Sign In" to continue, it pops up a window "Error message: Invalid redirect_uri, Error: 400. See attached image file. I tried to open this same rl in several workstations and it fails
- if I log on on the staging server and run the application http://localhost/myapplciation/ It works fine.
I also did another test, creating an IIS virtual directory and application pointing to the server //[stagingserver]/myapplication and it fails too.
Any ideas of what I need to check to fix this issue?
PS: Some additinal information that might help.
The Web Adaptor installed in my is located in another server http://[anotherserver]:6080