{"action":"created","comment":{"url":"https://api.github.com/repos/okta/okta-signin-widget/pulls/comments/126807153","pull_request_review_id":49328553,"id":126807153,"diff_hunk":"@@ -35,9 +35,13 @@ function (Okta, FormType, FormController, Footer, TextBox) {\n     },\n     Model: function () {\n       var provider = this.options.provider;\n+      var factors = this.options.appState.get('factors');\n+      var factor = factors.findWhere(_.pick(this.options, 'provider', 'factorType'));\n+      var profile = factor.get('profile');","path":"src/EnrollOnPremController.js","position":6,"original_position":6,"commit_id":"78728747a4209da612f56bcca3dbc76f15802ed8","original_commit_id":"8304dd5500c81325f02b7c75544c71671fcd939b","user":{"login":"gowthamidommety-okta","id":26014318,"avatar_url":"https://avatars3.githubusercontent.com/u/26014318?v=3","gravatar_id":"","url":"https://api.github.com/users/gowthamidommety-okta","html_url":"https://github.com/gowthamidommety-okta","followers_url":"https://api.github.com/users/gowthamidommety-okta/followers","following_url":"https://api.github.com/users/gowthamidommety-okta/following{/other_user}","gists_url":"https://api.github.com/users/gowthamidommety-okta/gists{/gist_id}","starred_url":"https://api.github.com/users/gowthamidommety-okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gowthamidommety-okta/subscriptions","organizations_url":"https://api.github.com/users/gowthamidommety-okta/orgs","repos_url":"https://api.github.com/users/gowthamidommety-okta/repos","events_url":"https://api.github.com/users/gowthamidommety-okta/events{/privacy}","received_events_url":"https://api.github.com/users/gowthamidommety-okta/received_events","type":"User","site_admin":false},"body":"If the factor is configured it will always send `profile`. However it's better to put an extra check in. Addressed this in my latest commit","created_at":"2017-07-11T21:02:41Z","updated_at":"2017-07-11T21:02:41Z","html_url":"https://github.com/okta/okta-signin-widget/pull/253#discussion_r126807153","pull_request_url":"https://api.github.com/repos/okta/okta-signin-widget/pulls/253","_links":{"self":{"href":"https://api.github.com/repos/okta/okta-signin-widget/pulls/comments/126807153"},"html":{"href":"https://github.com/okta/okta-signin-widget/pull/253#discussion_r126807153"},"pull_request":{"href":"https://api.github.com/repos/okta/okta-signin-widget/pulls/253"}}},"pull_request":{"url":"https://api.github.com/repos/okta/okta-signin-widget/pulls/253","id":129446692,"html_url":"https://github.com/okta/okta-signin-widget/pull/253","diff_url":"https://github.com/okta/okta-signin-widget/pull/253.diff","patch_url":"https://github.com/okta/okta-signin-widget/pull/253.patch","issue_url":"https://api.github.com/repos/okta/okta-signin-widget/issues/253","number":253,"state":"open","locked":false,"title":":bug: Autopopulates username during On-Prem MFA","user":{"login":"gowthamidommety-okta","id":26014318,"avatar_url":"https://avatars3.githubusercontent.com/u/26014318?v=3","gravatar_id":"","url":"https://api.github.com/users/gowthamidommety-okta","html_url":"https://github.com/gowthamidommety-okta","followers_url":"https://api.github.com/users/gowthamidommety-okta/followers","following_url":"https://api.github.com/users/gowthamidommety-okta/following{/other_user}","gists_url":"https://api.github.com/users/gowthamidommety-okta/gists{/gist_id}","starred_url":"https://api.github.com/users/gowthamidommety-okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gowthamidommety-okta/subscriptions","organizations_url":"https://api.github.com/users/gowthamidommety-okta/orgs","repos_url":"https://api.github.com/users/gowthamidommety-okta/repos","events_url":"https://api.github.com/users/gowthamidommety-okta/events{/privacy}","received_events_url":"https://api.github.com/users/gowthamidommety-okta/received_events","type":"User","site_admin":false},"body":"Resolves: OKTA-128212\r\n\r\n<img width=\"536\" alt=\"screen shot 2017-07-07 at 10 03 13 am\" src=\"https://user-images.githubusercontent.com/26014318/27968357-8cf404d8-62fb-11e7-8867-5257fe69ce55.png\">\r\n","created_at":"2017-07-07T17:00:46Z","updated_at":"2017-07-11T21:02:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85d4e58431fe71fd5039ffe76aa352e93d6b9702","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/okta/okta-signin-widget/pulls/253/commits","review_comments_url":"https://api.github.com/repos/okta/okta-signin-widget/pulls/253/comments","review_comment_url":"https://api.github.com/repos/okta/okta-signin-widget/pulls/comments{/number}","comments_url":"https://api.github.com/repos/okta/okta-signin-widget/issues/253/comments","statuses_url":"https://api.github.com/repos/okta/okta-signin-widget/statuses/78728747a4209da612f56bcca3dbc76f15802ed8","head":{"label":"gowthamidommety-okta:gd-OKTA-128212-autoPopulateUsername","ref":"gd-OKTA-128212-autoPopulateUsername","sha":"78728747a4209da612f56bcca3dbc76f15802ed8","user":{"login":"gowthamidommety-okta","id":26014318,"avatar_url":"https://avatars3.githubusercontent.com/u/26014318?v=3","gravatar_id":"","url":"https://api.github.com/users/gowthamidommety-okta","html_url":"https://github.com/gowthamidommety-okta","followers_url":"https://api.github.com/users/gowthamidommety-okta/followers","following_url":"https://api.github.com/users/gowthamidommety-okta/following{/other_user}","gists_url":"https://api.github.com/users/gowthamidommety-okta/gists{/gist_id}","starred_url":"https://api.github.com/users/gowthamidommety-okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gowthamidommety-okta/subscriptions","organizations_url":"https://api.github.com/users/gowthamidommety-okta/orgs","repos_url":"https://api.github.com/users/gowthamidommety-okta/repos","events_url":"https://api.github.com/users/gowthamidommety-okta/events{/privacy}","received_events_url":"https://api.github.com/users/gowthamidommety-okta/received_events","type":"User","site_admin":false},"repo":{"id":84500444,"name":"okta-signin-widget","full_name":"gowthamidommety-okta/okta-signin-widget","owner":{"login":"gowthamidommety-okta","id":26014318,"avatar_url":"https://avatars3.githubusercontent.com/u/26014318?v=3","gravatar_id":"","url":"https://api.github.com/users/gowthamidommety-okta","html_url":"https://github.com/gowthamidommety-okta","followers_url":"https://api.github.com/users/gowthamidommety-okta/followers","following_url":"https://api.github.com/users/gowthamidommety-okta/following{/other_user}","gists_url":"https://api.github.com/users/gowthamidommety-okta/gists{/gist_id}","starred_url":"https://api.github.com/users/gowthamidommety-okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gowthamidommety-okta/subscriptions","organizations_url":"https://api.github.com/users/gowthamidommety-okta/orgs","repos_url":"https://api.github.com/users/gowthamidommety-okta/repos","events_url":"https://api.github.com/users/gowthamidommety-okta/events{/privacy}","received_events_url":"https://api.github.com/users/gowthamidommety-okta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gowthamidommety-okta/okta-signin-widget","description":"Okta SignIn widget that renders the new login/auth/recovery flows","fork":true,"url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget","forks_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/forks","keys_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/teams","hooks_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/hooks","issue_events_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/issues/events{/number}","events_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/events","assignees_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/assignees{/user}","branches_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/branches{/branch}","tags_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/tags","blobs_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/git/refs{/sha}","trees_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/statuses/{sha}","languages_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/languages","stargazers_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/stargazers","contributors_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/contributors","subscribers_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/subscribers","subscription_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/subscription","commits_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/commits{/sha}","git_commits_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/git/commits{/sha}","comments_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/comments{/number}","issue_comment_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/issues/comments{/number}","contents_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/contents/{+path}","compare_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/merges","archive_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/downloads","issues_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/issues{/number}","pulls_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/pulls{/number}","milestones_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/milestones{/number}","notifications_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/labels{/name}","releases_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/releases{/id}","deployments_url":"https://api.github.com/repos/gowthamidommety-okta/okta-signin-widget/deployments","created_at":"2017-03-10T00:05:00Z","updated_at":"2017-03-10T00:05:03Z","pushed_at":"2017-07-11T20:55:10Z","git_url":"git://github.com/gowthamidommety-okta/okta-signin-widget.git","ssh_url":"git@github.com:gowthamidommety-okta/okta-signin-widget.git","clone_url":"https://github.com/gowthamidommety-okta/okta-signin-widget.git","svn_url":"https://github.com/gowthamidommety-okta/okta-signin-widget","homepage":null,"size":15577,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"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":"master"}},"base":{"label":"okta:master","ref":"master","sha":"a336ce33871acdf4150d17aadd999342a4eaa454","user":{"login":"okta","id":362460,"avatar_url":"https://avatars2.githubusercontent.com/u/362460?v=3","gravatar_id":"","url":"https://api.github.com/users/okta","html_url":"https://github.com/okta","followers_url":"https://api.github.com/users/okta/followers","following_url":"https://api.github.com/users/okta/following{/other_user}","gists_url":"https://api.github.com/users/okta/gists{/gist_id}","starred_url":"https://api.github.com/users/okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okta/subscriptions","organizations_url":"https://api.github.com/users/okta/orgs","repos_url":"https://api.github.com/users/okta/repos","events_url":"https://api.github.com/users/okta/events{/privacy}","received_events_url":"https://api.github.com/users/okta/received_events","type":"Organization","site_admin":false},"repo":{"id":46365690,"name":"okta-signin-widget","full_name":"okta/okta-signin-widget","owner":{"login":"okta","id":362460,"avatar_url":"https://avatars2.githubusercontent.com/u/362460?v=3","gravatar_id":"","url":"https://api.github.com/users/okta","html_url":"https://github.com/okta","followers_url":"https://api.github.com/users/okta/followers","following_url":"https://api.github.com/users/okta/following{/other_user}","gists_url":"https://api.github.com/users/okta/gists{/gist_id}","starred_url":"https://api.github.com/users/okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okta/subscriptions","organizations_url":"https://api.github.com/users/okta/orgs","repos_url":"https://api.github.com/users/okta/repos","events_url":"https://api.github.com/users/okta/events{/privacy}","received_events_url":"https://api.github.com/users/okta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/okta/okta-signin-widget","description":"Okta SignIn widget that renders the new login/auth/recovery flows","fork":false,"url":"https://api.github.com/repos/okta/okta-signin-widget","forks_url":"https://api.github.com/repos/okta/okta-signin-widget/forks","keys_url":"https://api.github.com/repos/okta/okta-signin-widget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okta/okta-signin-widget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okta/okta-signin-widget/teams","hooks_url":"https://api.github.com/repos/okta/okta-signin-widget/hooks","issue_events_url":"https://api.github.com/repos/okta/okta-signin-widget/issues/events{/number}","events_url":"https://api.github.com/repos/okta/okta-signin-widget/events","assignees_url":"https://api.github.com/repos/okta/okta-signin-widget/assignees{/user}","branches_url":"https://api.github.com/repos/okta/okta-signin-widget/branches{/branch}","tags_url":"https://api.github.com/repos/okta/okta-signin-widget/tags","blobs_url":"https://api.github.com/repos/okta/okta-signin-widget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okta/okta-signin-widget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okta/okta-signin-widget/git/refs{/sha}","trees_url":"https://api.github.com/repos/okta/okta-signin-widget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okta/okta-signin-widget/statuses/{sha}","languages_url":"https://api.github.com/repos/okta/okta-signin-widget/languages","stargazers_url":"https://api.github.com/repos/okta/okta-signin-widget/stargazers","contributors_url":"https://api.github.com/repos/okta/okta-signin-widget/contributors","subscribers_url":"https://api.github.com/repos/okta/okta-signin-widget/subscribers","subscription_url":"https://api.github.com/repos/okta/okta-signin-widget/subscription","commits_url":"https://api.github.com/repos/okta/okta-signin-widget/commits{/sha}","git_commits_url":"https://api.github.com/repos/okta/okta-signin-widget/git/commits{/sha}","comments_url":"https://api.github.com/repos/okta/okta-signin-widget/comments{/number}","issue_comment_url":"https://api.github.com/repos/okta/okta-signin-widget/issues/comments{/number}","contents_url":"https://api.github.com/repos/okta/okta-signin-widget/contents/{+path}","compare_url":"https://api.github.com/repos/okta/okta-signin-widget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okta/okta-signin-widget/merges","archive_url":"https://api.github.com/repos/okta/okta-signin-widget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okta/okta-signin-widget/downloads","issues_url":"https://api.github.com/repos/okta/okta-signin-widget/issues{/number}","pulls_url":"https://api.github.com/repos/okta/okta-signin-widget/pulls{/number}","milestones_url":"https://api.github.com/repos/okta/okta-signin-widget/milestones{/number}","notifications_url":"https://api.github.com/repos/okta/okta-signin-widget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okta/okta-signin-widget/labels{/name}","releases_url":"https://api.github.com/repos/okta/okta-signin-widget/releases{/id}","deployments_url":"https://api.github.com/repos/okta/okta-signin-widget/deployments","created_at":"2015-11-17T18:08:41Z","updated_at":"2017-07-09T00:53:31Z","pushed_at":"2017-07-11T21:00:17Z","git_url":"git://github.com/okta/okta-signin-widget.git","ssh_url":"git@github.com:okta/okta-signin-widget.git","clone_url":"https://github.com/okta/okta-signin-widget.git","svn_url":"https://github.com/okta/okta-signin-widget","homepage":null,"size":15787,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":25,"forks":37,"open_issues":25,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/okta/okta-signin-widget/pulls/253"},"html":{"href":"https://github.com/okta/okta-signin-widget/pull/253"},"issue":{"href":"https://api.github.com/repos/okta/okta-signin-widget/issues/253"},"comments":{"href":"https://api.github.com/repos/okta/okta-signin-widget/issues/253/comments"},"review_comments":{"href":"https://api.github.com/repos/okta/okta-signin-widget/pulls/253/comments"},"review_comment":{"href":"https://api.github.com/repos/okta/okta-signin-widget/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/okta/okta-signin-widget/pulls/253/commits"},"statuses":{"href":"https://api.github.com/repos/okta/okta-signin-widget/statuses/78728747a4209da612f56bcca3dbc76f15802ed8"}}}}
{"actor":{"display_login":"gowthamidommety-okta"}}