{"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":2,"created_at":"2015-10-07T02:35:12Z","updated_at":"2015-10-07T17:22:29Z","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/146268411","html_url":"https://github.com/Esri/resource-proxy/issues/304#issuecomment-146268411","issue_url":"https://api.github.com/repos/Esri/resource-proxy/issues/304","id":146268411,"user":{"login":"bsvensson","id":808357,"avatar_url":"https://avatars.githubusercontent.com/u/808357?v=3","gravatar_id":"","url":"https://api.github.com/users/bsvensson","html_url":"https://github.com/bsvensson","followers_url":"https://api.github.com/users/bsvensson/followers","following_url":"https://api.github.com/users/bsvensson/following{/other_user}","gists_url":"https://api.github.com/users/bsvensson/gists{/gist_id}","starred_url":"https://api.github.com/users/bsvensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsvensson/subscriptions","organizations_url":"https://api.github.com/users/bsvensson/orgs","repos_url":"https://api.github.com/users/bsvensson/repos","events_url":"https://api.github.com/users/bsvensson/events{/privacy}","received_events_url":"https://api.github.com/users/bsvensson/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T17:22:29Z","updated_at":"2015-10-07T17:22:29Z","body":"@pstaikov - tokenServiceUri  is implemented for all three proxies BUT missing from [the DotNet README.md](https://github.com/Esri/resource-proxy/blob/master/DotNet/README.md).  We will get that updated.\r\n\r\nCould you explain in more details what you mean with IWA is not handled by default in the DotNet proxy?  It should be...  Are you using the 1.0 version or the latest daily build."}}