{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/5361","repository_url":"https://api.github.com/repos/coreos/etcd","labels_url":"https://api.github.com/repos/coreos/etcd/issues/5361/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/5361/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/5361/events","html_url":"https://github.com/coreos/etcd/pull/5361","id":154973672,"number":5361,"title":"RFC: *: attach auth token as a gRPC credential","user":{"login":"mitake","id":1173955,"avatar_url":"https://avatars.githubusercontent.com/u/1173955?v=3","gravatar_id":"","url":"https://api.github.com/users/mitake","html_url":"https://github.com/mitake","followers_url":"https://api.github.com/users/mitake/followers","following_url":"https://api.github.com/users/mitake/following{/other_user}","gists_url":"https://api.github.com/users/mitake/gists{/gist_id}","starred_url":"https://api.github.com/users/mitake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitake/subscriptions","organizations_url":"https://api.github.com/users/mitake/orgs","repos_url":"https://api.github.com/users/mitake/repos","events_url":"https://api.github.com/users/mitake/events{/privacy}","received_events_url":"https://api.github.com/users/mitake/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-05-16T07:10:32Z","updated_at":"2016-05-17T04:28:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/coreos/etcd/pulls/5361","html_url":"https://github.com/coreos/etcd/pull/5361","diff_url":"https://github.com/coreos/etcd/pull/5361.diff","patch_url":"https://github.com/coreos/etcd/pull/5361.patch"},"body":"\r\nThis commit adds a functionality of attaching an auth token to gRPC\r\nconnection as a per RPC credential.\r\n\r\nFor doing this, this commit lets clientv3.Client.Dial() create a\r\ndedicated gRPC connection for doing authentication. With the dedicated\r\nconnection, the client calls Authenticate() RPC and obtain its\r\ntoken. The token is attached to the main gRPC connection with\r\ngrpc.WithPerRPCCredentials().\r\n\r\nThis commit also adds a new option --username to etcdctl (v3). With\r\nthis option, etcdctl attaches its auth token to the main gRPC\r\nconnection (currently it is not used at all)."},"comment":{"url":"https://api.github.com/repos/coreos/etcd/issues/comments/219616513","html_url":"https://github.com/coreos/etcd/pull/5361#issuecomment-219616513","issue_url":"https://api.github.com/repos/coreos/etcd/issues/5361","id":219616513,"user":{"login":"mitake","id":1173955,"avatar_url":"https://avatars.githubusercontent.com/u/1173955?v=3","gravatar_id":"","url":"https://api.github.com/users/mitake","html_url":"https://github.com/mitake","followers_url":"https://api.github.com/users/mitake/followers","following_url":"https://api.github.com/users/mitake/following{/other_user}","gists_url":"https://api.github.com/users/mitake/gists{/gist_id}","starred_url":"https://api.github.com/users/mitake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitake/subscriptions","organizations_url":"https://api.github.com/users/mitake/orgs","repos_url":"https://api.github.com/users/mitake/repos","events_url":"https://api.github.com/users/mitake/events{/privacy}","received_events_url":"https://api.github.com/users/mitake/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T04:28:32Z","updated_at":"2016-05-17T04:28:32Z","body":"@xiang90 updated for the comment and the test problem, PTAL."}}