{"action":"created","comment":{"url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pulls/comments/33895925","id":33895925,"diff_hunk":"@@ -13,33 +15,53 @@ public class AuthenticationController : Controller {\n             ViewBag.ReturnUrl = returnUrl;\n \n             // Note: in a real world application, you'd probably prefer creating a specific view model.\n-            return View(\"SignIn\", Context.GetExternalProviders());\n+            return View(\"SignIn\", new AuthenticationModel() {AuthenticationDescriptions = Context.GetExternalProviders()});\n         }\n \n         [HttpPost(\"~/signin\")]\n-        public ActionResult SignIn(string provider, string returnUrl) {\n+        public ActionResult SignIn(AuthenticationModel  model) {","path":"samples/Mvc/Mvc.Server/Controllers/AuthenticationController.cs","position":21,"original_position":21,"commit_id":"a797d2a4afec89a1ae9d771456f026adee0af548","original_commit_id":"a797d2a4afec89a1ae9d771456f026adee0af548","user":{"login":"PinpointTownes","id":6998306,"avatar_url":"https://avatars.githubusercontent.com/u/6998306?v=3","gravatar_id":"","url":"https://api.github.com/users/PinpointTownes","html_url":"https://github.com/PinpointTownes","followers_url":"https://api.github.com/users/PinpointTownes/followers","following_url":"https://api.github.com/users/PinpointTownes/following{/other_user}","gists_url":"https://api.github.com/users/PinpointTownes/gists{/gist_id}","starred_url":"https://api.github.com/users/PinpointTownes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PinpointTownes/subscriptions","organizations_url":"https://api.github.com/users/PinpointTownes/orgs","repos_url":"https://api.github.com/users/PinpointTownes/repos","events_url":"https://api.github.com/users/PinpointTownes/events{/privacy}","received_events_url":"https://api.github.com/users/PinpointTownes/received_events","type":"User","site_admin":false},"body":"nit: spacing.\r\n\r\nI wonder if we shouldn't create another `SignIn` action for local sign and use 2 different HTML forms in the client.\r\nAlso, the view model shouldn't be necessary.","created_at":"2015-07-05T15:56:46Z","updated_at":"2015-07-05T15:56:46Z","html_url":"https://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pull/104#discussion_r33895925","pull_request_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pulls/104","_links":{"self":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pulls/comments/33895925"},"html":{"href":"https://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pull/104#discussion_r33895925"},"pull_request":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pulls/104"}}},"pull_request":{"url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pulls/104","id":39221474,"html_url":"https://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pull/104","diff_url":"https://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pull/104.diff","patch_url":"https://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pull/104.patch","issue_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/issues/104","number":104,"state":"open","locked":false,"title":"Add Angular Client","user":{"login":"AlexZeitler","id":287480,"avatar_url":"https://avatars.githubusercontent.com/u/287480?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexZeitler","html_url":"https://github.com/AlexZeitler","followers_url":"https://api.github.com/users/AlexZeitler/followers","following_url":"https://api.github.com/users/AlexZeitler/following{/other_user}","gists_url":"https://api.github.com/users/AlexZeitler/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexZeitler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexZeitler/subscriptions","organizations_url":"https://api.github.com/users/AlexZeitler/orgs","repos_url":"https://api.github.com/users/AlexZeitler/repos","events_url":"https://api.github.com/users/AlexZeitler/events{/privacy}","received_events_url":"https://api.github.com/users/AlexZeitler/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-05T14:16:37Z","updated_at":"2015-07-05T15:56:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b6d4ca6c4401cf67f15e501b8a08b66b2627e0f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pulls/104/commits","review_comments_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pulls/104/comments","review_comment_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/issues/104/comments","statuses_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/statuses/a797d2a4afec89a1ae9d771456f026adee0af548","head":{"label":"AlexZeitler:vNext","ref":"vNext","sha":"a797d2a4afec89a1ae9d771456f026adee0af548","user":{"login":"AlexZeitler","id":287480,"avatar_url":"https://avatars.githubusercontent.com/u/287480?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexZeitler","html_url":"https://github.com/AlexZeitler","followers_url":"https://api.github.com/users/AlexZeitler/followers","following_url":"https://api.github.com/users/AlexZeitler/following{/other_user}","gists_url":"https://api.github.com/users/AlexZeitler/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexZeitler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexZeitler/subscriptions","organizations_url":"https://api.github.com/users/AlexZeitler/orgs","repos_url":"https://api.github.com/users/AlexZeitler/repos","events_url":"https://api.github.com/users/AlexZeitler/events{/privacy}","received_events_url":"https://api.github.com/users/AlexZeitler/received_events","type":"User","site_admin":false},"repo":{"id":38195164,"name":"AspNet.Security.OpenIdConnect.Server","full_name":"AlexZeitler/AspNet.Security.OpenIdConnect.Server","owner":{"login":"AlexZeitler","id":287480,"avatar_url":"https://avatars.githubusercontent.com/u/287480?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexZeitler","html_url":"https://github.com/AlexZeitler","followers_url":"https://api.github.com/users/AlexZeitler/followers","following_url":"https://api.github.com/users/AlexZeitler/following{/other_user}","gists_url":"https://api.github.com/users/AlexZeitler/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexZeitler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexZeitler/subscriptions","organizations_url":"https://api.github.com/users/AlexZeitler/orgs","repos_url":"https://api.github.com/users/AlexZeitler/repos","events_url":"https://api.github.com/users/AlexZeitler/events{/privacy}","received_events_url":"https://api.github.com/users/AlexZeitler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlexZeitler/AspNet.Security.OpenIdConnect.Server","description":"OWIN/Katana and ASP.NET 5-based OpenID Connect/OAuth2 server","fork":true,"url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server","forks_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/forks","keys_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/teams","hooks_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/hooks","issue_events_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/issues/events{/number}","events_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/events","assignees_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/assignees{/user}","branches_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/branches{/branch}","tags_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/tags","blobs_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/languages","stargazers_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/stargazers","contributors_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/contributors","subscribers_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/subscribers","subscription_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/subscription","commits_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/contents/{+path}","compare_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/merges","archive_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/downloads","issues_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/issues{/number}","pulls_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/labels{/name}","releases_url":"https://api.github.com/repos/AlexZeitler/AspNet.Security.OpenIdConnect.Server/releases{/id}","created_at":"2015-06-28T10:40:14Z","updated_at":"2015-06-28T10:40:14Z","pushed_at":"2015-07-05T14:41:25Z","git_url":"git://github.com/AlexZeitler/AspNet.Security.OpenIdConnect.Server.git","ssh_url":"git@github.com:AlexZeitler/AspNet.Security.OpenIdConnect.Server.git","clone_url":"https://github.com/AlexZeitler/AspNet.Security.OpenIdConnect.Server.git","svn_url":"https://github.com/AlexZeitler/AspNet.Security.OpenIdConnect.Server","homepage":"","size":1810,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"vNext"}},"base":{"label":"aspnet-contrib:vNext","ref":"vNext","sha":"005c13b5aa4c84ec8bd2b28b80c251ecdeae54c2","user":{"login":"aspnet-contrib","id":7998081,"avatar_url":"https://avatars.githubusercontent.com/u/7998081?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet-contrib","html_url":"https://github.com/aspnet-contrib","followers_url":"https://api.github.com/users/aspnet-contrib/followers","following_url":"https://api.github.com/users/aspnet-contrib/following{/other_user}","gists_url":"https://api.github.com/users/aspnet-contrib/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet-contrib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet-contrib/subscriptions","organizations_url":"https://api.github.com/users/aspnet-contrib/orgs","repos_url":"https://api.github.com/users/aspnet-contrib/repos","events_url":"https://api.github.com/users/aspnet-contrib/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet-contrib/received_events","type":"Organization","site_admin":false},"repo":{"id":21247659,"name":"AspNet.Security.OpenIdConnect.Server","full_name":"aspnet-contrib/AspNet.Security.OpenIdConnect.Server","owner":{"login":"aspnet-contrib","id":7998081,"avatar_url":"https://avatars.githubusercontent.com/u/7998081?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet-contrib","html_url":"https://github.com/aspnet-contrib","followers_url":"https://api.github.com/users/aspnet-contrib/followers","following_url":"https://api.github.com/users/aspnet-contrib/following{/other_user}","gists_url":"https://api.github.com/users/aspnet-contrib/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet-contrib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet-contrib/subscriptions","organizations_url":"https://api.github.com/users/aspnet-contrib/orgs","repos_url":"https://api.github.com/users/aspnet-contrib/repos","events_url":"https://api.github.com/users/aspnet-contrib/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet-contrib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server","description":"OWIN/Katana and ASP.NET 5-based OpenID Connect/OAuth2 server","fork":false,"url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server","forks_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/forks","keys_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/teams","hooks_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/hooks","issue_events_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/events","assignees_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/tags","blobs_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/languages","stargazers_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/stargazers","contributors_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/contributors","subscribers_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/subscribers","subscription_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/subscription","commits_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/merges","archive_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/downloads","issues_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/labels{/name}","releases_url":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/releases{/id}","created_at":"2014-06-26T16:41:28Z","updated_at":"2015-07-02T17:16:17Z","pushed_at":"2015-07-05T14:41:25Z","git_url":"git://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server.git","ssh_url":"git@github.com:aspnet-contrib/AspNet.Security.OpenIdConnect.Server.git","clone_url":"https://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server.git","svn_url":"https://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server","homepage":"","size":8207,"stargazers_count":31,"watchers_count":31,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":11,"forks":12,"open_issues":11,"watchers":31,"default_branch":"vNext"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pulls/104"},"html":{"href":"https://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pull/104"},"issue":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/issues/104"},"comments":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/issues/104/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pulls/104/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/pulls/104/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/statuses/a797d2a4afec89a1ae9d771456f026adee0af548"}}}}