{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vso-agent/issues/136","labels_url":"https://api.github.com/repos/Microsoft/vso-agent/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vso-agent/issues/136/comments","events_url":"https://api.github.com/repos/Microsoft/vso-agent/issues/136/events","html_url":"https://github.com/Microsoft/vso-agent/issues/136","id":114390049,"number":136,"title":"OSX. Run as a daemon failed with 401","user":{"login":"insanity13","id":1174911,"avatar_url":"https://avatars.githubusercontent.com/u/1174911?v=3","gravatar_id":"","url":"https://api.github.com/users/insanity13","html_url":"https://github.com/insanity13","followers_url":"https://api.github.com/users/insanity13/followers","following_url":"https://api.github.com/users/insanity13/following{/other_user}","gists_url":"https://api.github.com/users/insanity13/gists{/gist_id}","starred_url":"https://api.github.com/users/insanity13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insanity13/subscriptions","organizations_url":"https://api.github.com/users/insanity13/orgs","repos_url":"https://api.github.com/users/insanity13/repos","events_url":"https://api.github.com/users/insanity13/events{/privacy}","received_events_url":"https://api.github.com/users/insanity13/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-31T06:04:05Z","updated_at":"2015-12-06T17:45:48Z","closed_at":null,"body":"When agent start interactively it work fine. \r\nBut when I try to start it as daemon it fails with 401.\r\nstdout.log shows that env vars set right.\r\nHow to set authentification for deamon correctly?\r\nI'm could not find anything in docs."},"comment":{"url":"https://api.github.com/repos/Microsoft/vso-agent/issues/comments/162331473","html_url":"https://github.com/Microsoft/vso-agent/issues/136#issuecomment-162331473","issue_url":"https://api.github.com/repos/Microsoft/vso-agent/issues/136","id":162331473,"user":{"login":"bryanmacfarlane","id":919564,"avatar_url":"https://avatars.githubusercontent.com/u/919564?v=3","gravatar_id":"","url":"https://api.github.com/users/bryanmacfarlane","html_url":"https://github.com/bryanmacfarlane","followers_url":"https://api.github.com/users/bryanmacfarlane/followers","following_url":"https://api.github.com/users/bryanmacfarlane/following{/other_user}","gists_url":"https://api.github.com/users/bryanmacfarlane/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanmacfarlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanmacfarlane/subscriptions","organizations_url":"https://api.github.com/users/bryanmacfarlane/orgs","repos_url":"https://api.github.com/users/bryanmacfarlane/repos","events_url":"https://api.github.com/users/bryanmacfarlane/events{/privacy}","received_events_url":"https://api.github.com/users/bryanmacfarlane/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T17:45:48Z","updated_at":"2015-12-06T17:45:48Z","body":">> Second, look in the plist that's referenced. What creds are in it? \r\n\r\nI wonder if it's a quoting/escaping issue in that file?? Also, you will need to append the flag to force basic (let me look that up).  Just realized that will be needed."}}