{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/4279","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/4279/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/4279/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/4279/events","html_url":"https://github.com/dotnet/corefx/issues/4279","id":114499912,"number":4279,"title":"Please provide inline authorization support for the HttpClient","user":{"login":"weitzhandler","id":2716316,"avatar_url":"https://avatars.githubusercontent.com/u/2716316?v=3","gravatar_id":"","url":"https://api.github.com/users/weitzhandler","html_url":"https://github.com/weitzhandler","followers_url":"https://api.github.com/users/weitzhandler/followers","following_url":"https://api.github.com/users/weitzhandler/following{/other_user}","gists_url":"https://api.github.com/users/weitzhandler/gists{/gist_id}","starred_url":"https://api.github.com/users/weitzhandler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weitzhandler/subscriptions","organizations_url":"https://api.github.com/users/weitzhandler/orgs","repos_url":"https://api.github.com/users/weitzhandler/repos","events_url":"https://api.github.com/users/weitzhandler/events{/privacy}","received_events_url":"https://api.github.com/users/weitzhandler/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/corefx/labels/suggestion","name":"suggestion","color":"207de5"},{"url":"https://api.github.com/repos/dotnet/corefx/labels/System.Net","name":"System.Net","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"SidharthNabar","id":11183133,"avatar_url":"https://avatars.githubusercontent.com/u/11183133?v=3","gravatar_id":"","url":"https://api.github.com/users/SidharthNabar","html_url":"https://github.com/SidharthNabar","followers_url":"https://api.github.com/users/SidharthNabar/followers","following_url":"https://api.github.com/users/SidharthNabar/following{/other_user}","gists_url":"https://api.github.com/users/SidharthNabar/gists{/gist_id}","starred_url":"https://api.github.com/users/SidharthNabar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SidharthNabar/subscriptions","organizations_url":"https://api.github.com/users/SidharthNabar/orgs","repos_url":"https://api.github.com/users/SidharthNabar/repos","events_url":"https://api.github.com/users/SidharthNabar/events{/privacy}","received_events_url":"https://api.github.com/users/SidharthNabar/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-11-01T23:20:21Z","updated_at":"2015-11-02T01:40:51Z","closed_at":null,"body":"Hi,\r\n\r\nThe [`HttpClient`](https://github.com/dotnet/corefx/blob/c02d33b18398199f6acc17d375dab154e9a1df66/src/System.Net.Http/src/System/Net/Http/HttpClient.cs) facility is amazing.\r\n\r\nHowever, it lacks OO support for authentication and authorization.\r\n\r\nThere should be a way to set a few properties (like `ClientId`, `SecretId`, `AuthenticationType`, `UserName` and `Password` etc.), and once the `HttpClient` is initialized with authentication, it should internally keep track of its authentication state, token expiry, refresh tokens, and all that."},"comment":{"url":"https://api.github.com/repos/dotnet/corefx/issues/comments/152887161","html_url":"https://github.com/dotnet/corefx/issues/4279#issuecomment-152887161","issue_url":"https://api.github.com/repos/dotnet/corefx/issues/4279","id":152887161,"user":{"login":"weitzhandler","id":2716316,"avatar_url":"https://avatars.githubusercontent.com/u/2716316?v=3","gravatar_id":"","url":"https://api.github.com/users/weitzhandler","html_url":"https://github.com/weitzhandler","followers_url":"https://api.github.com/users/weitzhandler/followers","following_url":"https://api.github.com/users/weitzhandler/following{/other_user}","gists_url":"https://api.github.com/users/weitzhandler/gists{/gist_id}","starred_url":"https://api.github.com/users/weitzhandler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weitzhandler/subscriptions","organizations_url":"https://api.github.com/users/weitzhandler/orgs","repos_url":"https://api.github.com/users/weitzhandler/repos","events_url":"https://api.github.com/users/weitzhandler/events{/privacy}","received_events_url":"https://api.github.com/users/weitzhandler/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T01:40:51Z","updated_at":"2015-11-02T01:40:51Z","body":"Oops, I just checked the [source](https://github.com/dotnet/corefx/blob/master/src/System.Net.Http/src/System/Net/Http/HttpClient.cs#L334), and looks they call all the methods call the non-overridable `SendAsync`. Makes no sense to me."}}