{"action":"created","issue":{"url":"https://api.github.com/repos/molinch/FFImageLoading/issues/173","repository_url":"https://api.github.com/repos/molinch/FFImageLoading","labels_url":"https://api.github.com/repos/molinch/FFImageLoading/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/molinch/FFImageLoading/issues/173/comments","events_url":"https://api.github.com/repos/molinch/FFImageLoading/issues/173/events","html_url":"https://github.com/molinch/FFImageLoading/issues/173","id":146702584,"number":173,"title":"Support for Authentication tokens/headers?","user":{"login":"ravensorb","id":2222472,"avatar_url":"https://avatars.githubusercontent.com/u/2222472?v=3","gravatar_id":"","url":"https://api.github.com/users/ravensorb","html_url":"https://github.com/ravensorb","followers_url":"https://api.github.com/users/ravensorb/followers","following_url":"https://api.github.com/users/ravensorb/following{/other_user}","gists_url":"https://api.github.com/users/ravensorb/gists{/gist_id}","starred_url":"https://api.github.com/users/ravensorb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravensorb/subscriptions","organizations_url":"https://api.github.com/users/ravensorb/orgs","repos_url":"https://api.github.com/users/ravensorb/repos","events_url":"https://api.github.com/users/ravensorb/events{/privacy}","received_events_url":"https://api.github.com/users/ravensorb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/molinch/FFImageLoading/labels/investigating%20...","name":"investigating ...","color":"8e44ad"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-07T18:10:23Z","updated_at":"2016-04-18T19:01:52Z","closed_at":null,"body":"Any thought to support Authentication tokens and/or headers during the request process?  For example, how would I set an OAuth Bearer token priory to using this in XAML on a page?  Keeping in mind that authentication will happen long after the application loads (in terms of start up).  \r\n\r\nOne possible option could be to allow a callback (Action/Func type property) to be set within the PCL code?\r\n\r\nEx:\r\n```c#\r\nImageService.InitializeClient = (httpClient) => \r\n{ \r\n    httpClient.DefaultRequestHeaders.Add(\"Authorization\", \"Bearer XXXXXXXXX\");\r\n};\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/molinch/FFImageLoading/issues/comments/211530721","html_url":"https://github.com/molinch/FFImageLoading/issues/173#issuecomment-211530721","issue_url":"https://api.github.com/repos/molinch/FFImageLoading/issues/173","id":211530721,"user":{"login":"daniel-luberda","id":13569983,"avatar_url":"https://avatars.githubusercontent.com/u/13569983?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel-luberda","html_url":"https://github.com/daniel-luberda","followers_url":"https://api.github.com/users/daniel-luberda/followers","following_url":"https://api.github.com/users/daniel-luberda/following{/other_user}","gists_url":"https://api.github.com/users/daniel-luberda/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-luberda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-luberda/subscriptions","organizations_url":"https://api.github.com/users/daniel-luberda/orgs","repos_url":"https://api.github.com/users/daniel-luberda/repos","events_url":"https://api.github.com/users/daniel-luberda/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-luberda/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T19:01:52Z","updated_at":"2016-04-18T19:01:52Z","body":"Hi @ravensorb @michaeldimoudis,\r\n\r\n@ravensorb That error is probably TaskCancelledException, I fixed it here: https://github.com/molinch/FFImageLoading/commit/f87602abd6f17dc78f8d25418b509535b150d2e7#diff-7399e835b4d01addca6bd9a204466d58R213\r\n\r\n"}}