{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/pulls/comments/184231272","pull_request_review_id":115385009,"id":184231272,"diff_hunk":"@@ -99,5 +99,32 @@ public static void EndConversation(this IDialogContext context, string code)\n             var activity = new Activity(ActivityTypes.Event) { Value = new EndConversationEvent(code) };\n             context.Post(activity, AfterReset);\n         }\n+\n+        public static Task<TokenResponse> GetUserTokenAsync(this IDialogContext context, string connectionName)\n+        {\n+            var userId = context.Activity.From.Id;\n+            IConnectorClientFactory factory = new ConnectorClientFactory(Address.FromActivity(context.Activity), new MicrosoftAppCredentials());\n+            return factory.MakeOAuthClient().OAuthApi.GetUserTokenAsync(userId, connectionName);","path":"CSharp/Library/Microsoft.Bot.Builder/Dialogs/EndConversation.cs","position":9,"original_position":9,"commit_id":"f5f411e122dcd128e452e67e96afc2797d123ccf","original_commit_id":"f5f411e122dcd128e452e67e96afc2797d123ccf","user":{"login":"tomlm","id":17789481,"avatar_url":"https://avatars0.githubusercontent.com/u/17789481?v=4","gravatar_id":"","url":"https://api.github.com/users/tomlm","html_url":"https://github.com/tomlm","followers_url":"https://api.github.com/users/tomlm/followers","following_url":"https://api.github.com/users/tomlm/following{/other_user}","gists_url":"https://api.github.com/users/tomlm/gists{/gist_id}","starred_url":"https://api.github.com/users/tomlm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomlm/subscriptions","organizations_url":"https://api.github.com/users/tomlm/orgs","repos_url":"https://api.github.com/users/tomlm/repos","events_url":"https://api.github.com/users/tomlm/events{/privacy}","received_events_url":"https://api.github.com/users/tomlm/received_events","type":"User","site_admin":false},"body":">; [](start = 95, length = 1)\r\n\r\nConfigureAwait(false)?","created_at":"2018-04-25T23:07:55Z","updated_at":"2018-04-25T23:07:55Z","html_url":"https://github.com/Microsoft/BotBuilder/pull/4524#discussion_r184231272","pull_request_url":"https://api.github.com/repos/Microsoft/BotBuilder/pulls/4524","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/BotBuilder/pulls/comments/184231272"},"html":{"href":"https://github.com/Microsoft/BotBuilder/pull/4524#discussion_r184231272"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/BotBuilder/pulls/4524"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/pulls/4524","id":183863050,"html_url":"https://github.com/Microsoft/BotBuilder/pull/4524","diff_url":"https://github.com/Microsoft/BotBuilder/pull/4524.diff","patch_url":"https://github.com/Microsoft/BotBuilder/pull/4524.patch","issue_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/4524","number":4524,"state":"open","locked":false,"title":"OAuthCard support in the V3 C# SDK","user":{"login":"Jeffders","id":8527304,"avatar_url":"https://avatars0.githubusercontent.com/u/8527304?v=4","gravatar_id":"","url":"https://api.github.com/users/Jeffders","html_url":"https://github.com/Jeffders","followers_url":"https://api.github.com/users/Jeffders/followers","following_url":"https://api.github.com/users/Jeffders/following{/other_user}","gists_url":"https://api.github.com/users/Jeffders/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeffders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeffders/subscriptions","organizations_url":"https://api.github.com/users/Jeffders/orgs","repos_url":"https://api.github.com/users/Jeffders/repos","events_url":"https://api.github.com/users/Jeffders/events{/privacy}","received_events_url":"https://api.github.com/users/Jeffders/received_events","type":"User","site_admin":false},"body":"Adding OAuthCard support in the BotBuilder C# SDK:\r\n\r\n1. Adds support for helper methods around the OAuthCard\r\n2. Adds samples for AAD v1, AAD v2, and GitHub","created_at":"2018-04-24T21:01:10Z","updated_at":"2018-04-25T23:07:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dcd4bdcbedc5c28a346d03d31fce460cc03779b9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/BotBuilder/pulls/4524/commits","review_comments_url":"https://api.github.com/repos/Microsoft/BotBuilder/pulls/4524/comments","review_comment_url":"https://api.github.com/repos/Microsoft/BotBuilder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/4524/comments","statuses_url":"https://api.github.com/repos/Microsoft/BotBuilder/statuses/f5f411e122dcd128e452e67e96afc2797d123ccf","head":{"label":"Microsoft:jeffders/csharpOAuth","ref":"jeffders/csharpOAuth","sha":"f5f411e122dcd128e452e67e96afc2797d123ccf","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":53092757,"name":"BotBuilder","full_name":"Microsoft/BotBuilder","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/BotBuilder","description":"The Microsoft Bot Builder SDK is one of three main components of the Microsoft Bot Framework.  The Microsoft Bot Framework provides just what you need to build and connect intelligent bots that interact naturally wherever your users are talking, from text/SMS to Skype, Slack, Office 365 mail and other popular services.","fork":false,"url":"https://api.github.com/repos/Microsoft/BotBuilder","forks_url":"https://api.github.com/repos/Microsoft/BotBuilder/forks","keys_url":"https://api.github.com/repos/Microsoft/BotBuilder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/BotBuilder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/BotBuilder/teams","hooks_url":"https://api.github.com/repos/Microsoft/BotBuilder/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/BotBuilder/events","assignees_url":"https://api.github.com/repos/Microsoft/BotBuilder/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/BotBuilder/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/BotBuilder/tags","blobs_url":"https://api.github.com/repos/Microsoft/BotBuilder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/BotBuilder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/BotBuilder/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/BotBuilder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/BotBuilder/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/BotBuilder/languages","stargazers_url":"https://api.github.com/repos/Microsoft/BotBuilder/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/BotBuilder/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/BotBuilder/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/BotBuilder/subscription","commits_url":"https://api.github.com/repos/Microsoft/BotBuilder/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/BotBuilder/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/BotBuilder/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/BotBuilder/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/BotBuilder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/BotBuilder/merges","archive_url":"https://api.github.com/repos/Microsoft/BotBuilder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/BotBuilder/downloads","issues_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/BotBuilder/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/BotBuilder/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/BotBuilder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/BotBuilder/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/BotBuilder/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/BotBuilder/deployments","created_at":"2016-03-03T23:47:03Z","updated_at":"2018-04-25T17:50:43Z","pushed_at":"2018-04-25T22:28:43Z","git_url":"git://github.com/Microsoft/BotBuilder.git","ssh_url":"git@github.com:Microsoft/BotBuilder.git","clone_url":"https://github.com/Microsoft/BotBuilder.git","svn_url":"https://github.com/Microsoft/BotBuilder","homepage":"http://botframework.com","size":216636,"stargazers_count":5054,"watchers_count":5054,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1992,"mirror_url":null,"archived":false,"open_issues_count":376,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1992,"open_issues":376,"watchers":5054,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"b7d9b2e2bf26e918dc507167d3c868ee0e8d2b43","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":53092757,"name":"BotBuilder","full_name":"Microsoft/BotBuilder","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/BotBuilder","description":"The Microsoft Bot Builder SDK is one of three main components of the Microsoft Bot Framework.  The Microsoft Bot Framework provides just what you need to build and connect intelligent bots that interact naturally wherever your users are talking, from text/SMS to Skype, Slack, Office 365 mail and other popular services.","fork":false,"url":"https://api.github.com/repos/Microsoft/BotBuilder","forks_url":"https://api.github.com/repos/Microsoft/BotBuilder/forks","keys_url":"https://api.github.com/repos/Microsoft/BotBuilder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/BotBuilder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/BotBuilder/teams","hooks_url":"https://api.github.com/repos/Microsoft/BotBuilder/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/BotBuilder/events","assignees_url":"https://api.github.com/repos/Microsoft/BotBuilder/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/BotBuilder/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/BotBuilder/tags","blobs_url":"https://api.github.com/repos/Microsoft/BotBuilder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/BotBuilder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/BotBuilder/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/BotBuilder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/BotBuilder/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/BotBuilder/languages","stargazers_url":"https://api.github.com/repos/Microsoft/BotBuilder/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/BotBuilder/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/BotBuilder/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/BotBuilder/subscription","commits_url":"https://api.github.com/repos/Microsoft/BotBuilder/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/BotBuilder/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/BotBuilder/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/BotBuilder/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/BotBuilder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/BotBuilder/merges","archive_url":"https://api.github.com/repos/Microsoft/BotBuilder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/BotBuilder/downloads","issues_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/BotBuilder/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/BotBuilder/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/BotBuilder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/BotBuilder/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/BotBuilder/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/BotBuilder/deployments","created_at":"2016-03-03T23:47:03Z","updated_at":"2018-04-25T17:50:43Z","pushed_at":"2018-04-25T22:28:43Z","git_url":"git://github.com/Microsoft/BotBuilder.git","ssh_url":"git@github.com:Microsoft/BotBuilder.git","clone_url":"https://github.com/Microsoft/BotBuilder.git","svn_url":"https://github.com/Microsoft/BotBuilder","homepage":"http://botframework.com","size":216636,"stargazers_count":5054,"watchers_count":5054,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1992,"mirror_url":null,"archived":false,"open_issues_count":376,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1992,"open_issues":376,"watchers":5054,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/BotBuilder/pulls/4524"},"html":{"href":"https://github.com/Microsoft/BotBuilder/pull/4524"},"issue":{"href":"https://api.github.com/repos/Microsoft/BotBuilder/issues/4524"},"comments":{"href":"https://api.github.com/repos/Microsoft/BotBuilder/issues/4524/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/BotBuilder/pulls/4524/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/BotBuilder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/BotBuilder/pulls/4524/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/BotBuilder/statuses/f5f411e122dcd128e452e67e96afc2797d123ccf"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"tomlm"}}