{"action":"opened","issue":{"url":"https://api.github.com/repos/ServiceStack/Issues/issues/342","labels_url":"https://api.github.com/repos/ServiceStack/Issues/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/ServiceStack/Issues/issues/342/comments","events_url":"https://api.github.com/repos/ServiceStack/Issues/issues/342/events","html_url":"https://github.com/ServiceStack/Issues/issues/342","id":103911500,"number":342,"title":"How to avoid HTTP 401 when ServiceStack server requires authorization?","user":{"login":"Leonidnei","id":14038982,"avatar_url":"https://avatars.githubusercontent.com/u/14038982?v=3","gravatar_id":"","url":"https://api.github.com/users/Leonidnei","html_url":"https://github.com/Leonidnei","followers_url":"https://api.github.com/users/Leonidnei/followers","following_url":"https://api.github.com/users/Leonidnei/following{/other_user}","gists_url":"https://api.github.com/users/Leonidnei/gists{/gist_id}","starred_url":"https://api.github.com/users/Leonidnei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leonidnei/subscriptions","organizations_url":"https://api.github.com/users/Leonidnei/orgs","repos_url":"https://api.github.com/users/Leonidnei/repos","events_url":"https://api.github.com/users/Leonidnei/events{/privacy}","received_events_url":"https://api.github.com/users/Leonidnei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-30T09:34:51Z","updated_at":"2015-08-30T09:34:51Z","closed_at":null,"body":"When server requires Windows authentication, each request sent by client is rejected with HTTP 401 and resent send time with auth headers, then the request succeeds.\r\n\r\nHow to avoid these double requests?\r\n\r\nFor WCF or ASMX service we can use:\r\nrequest.PreAuthenticate = true;\r\nrequest.UnsafeAuthenticatedConnectionSharing = true;\r\n\r\nwhere request is HttpRequest being sent to the server.\r\n\r\nHow to implement this with ServiceStack?"}}