{"action":"created","issue":{"url":"https://api.github.com/repos/Esri/resource-proxy/issues/304","labels_url":"https://api.github.com/repos/Esri/resource-proxy/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/Esri/resource-proxy/issues/304/comments","events_url":"https://api.github.com/repos/Esri/resource-proxy/issues/304/events","html_url":"https://github.com/Esri/resource-proxy/issues/304","id":110141316,"number":304,"title":"tokenServiceUri option missing in the DotNet version of the proxy","user":{"login":"pstaikov","id":15007429,"avatar_url":"https://avatars.githubusercontent.com/u/15007429?v=3","gravatar_id":"","url":"https://api.github.com/users/pstaikov","html_url":"https://github.com/pstaikov","followers_url":"https://api.github.com/users/pstaikov/followers","following_url":"https://api.github.com/users/pstaikov/following{/other_user}","gists_url":"https://api.github.com/users/pstaikov/gists{/gist_id}","starred_url":"https://api.github.com/users/pstaikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pstaikov/subscriptions","organizations_url":"https://api.github.com/users/pstaikov/orgs","repos_url":"https://api.github.com/users/pstaikov/repos","events_url":"https://api.github.com/users/pstaikov/events{/privacy}","received_events_url":"https://api.github.com/users/pstaikov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-07T02:35:12Z","updated_at":"2015-10-09T20:28:21Z","closed_at":null,"body":"I am trying to use the proxy with token based authentication. I have realized that before the proxy calls the generateToken URL, it calls the /arcgis/rest/info page to discover the generateToken URL. My problem is that the arcgis/rest/info page also requires authentication and since it precedes the token generation, that call returns 401 (Unauthorized) response. I do not understand the portal configuration options much, but I assume that it is setup with no public access and this is why it requires authentication for all URL. This seems reasonable to me. I was able to find a work-around for this issue when using the java version by specifying the tokenServiceUri. When I provide the generateToken URL with this parameter, the call to the /arcgis/rest/info page is skipped. The problem however is that this option is not available in the DotNet version of the proxy and this is the one that I want to use. This would help me avoid the complication of setting additional java application servers in a cluster environment, which is not completely trivial. I think it would be very nice if you added the tokenServiceUri  config parameter  to the DotNet version.\r\n\r\nThank you for your help!"},"comment":{"url":"https://api.github.com/repos/Esri/resource-proxy/issues/comments/146978909","html_url":"https://github.com/Esri/resource-proxy/issues/304#issuecomment-146978909","issue_url":"https://api.github.com/repos/Esri/resource-proxy/issues/304","id":146978909,"user":{"login":"pstaikov","id":15007429,"avatar_url":"https://avatars.githubusercontent.com/u/15007429?v=3","gravatar_id":"","url":"https://api.github.com/users/pstaikov","html_url":"https://github.com/pstaikov","followers_url":"https://api.github.com/users/pstaikov/followers","following_url":"https://api.github.com/users/pstaikov/following{/other_user}","gists_url":"https://api.github.com/users/pstaikov/gists{/gist_id}","starred_url":"https://api.github.com/users/pstaikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pstaikov/subscriptions","organizations_url":"https://api.github.com/users/pstaikov/orgs","repos_url":"https://api.github.com/users/pstaikov/repos","events_url":"https://api.github.com/users/pstaikov/events{/privacy}","received_events_url":"https://api.github.com/users/pstaikov/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T20:28:21Z","updated_at":"2015-10-09T20:28:21Z","body":"I suppose the line you have is enough. At least it will give the developer an idea that there is something else to try. I was looking at the 1.0 version and the latest on the master and did not know it existed. \r\n\r\n@bsvensson -- no, I did not have to use the req.UseDefaultCredentials = true; after all.\r\n\r\nThank you guys for your support!"}}