Hello, I got the following error message when I was trying to use WAB built-in Print Widget with ESRI printing service (Task: Export Web Map Task ). when I hover the error, it told me the "Error executing tool ....... Unable to connect to map server https://..../mymap/myservice/MapServer. ...Failed to execute Web Map Export task".
The map service can be accessed via rest-end point and the web map is shared at org level and can be seen from the application. Are there any other things I need to config to make it work? Thanks for your help!
Solved! Go to Solution.
Alex did this ever work for you? I've been trying to make the web appbuilder print widget work with both web tier and token based auth...but cant!
I tried custom print services like the link from Robert but still no luck...
Why is this so hard?
That link suggests you need to have token based authentication. What if you have web tier authentication?
I am having the same issue and I am using web tier authentication.
Thanks for any help!
Is that web tier authentication?
If so, you must have your server(s) federated with a portal. See the help link below. With web tier authentication, there is a limitation, at the web architecture level, that does not allow the user identity to flow through. As you know when you submit a request to a print service, like your web maps, it tries to access map/feature/image services to get image/features etc. In order to access those services, a print service must have privilege to access them -- since end users identity does not flow through, it basically relies on token. When your servers are federated to a portal, token gets passed around and print service can access secured services.
Having said that if you don't have portal and your security requirement is not really a per user level security you can choose one of the following options as last resorts (neither of them are recommended approach and we ask you to opt in to this with ample caution).