{"action":"created","comment":{"url":"https://api.github.com/repos/okta/oktasdk-csharp/pulls/comments/113282555","pull_request_review_id":34657397,"id":113282555,"diff_hunk":"@@ -40,6 +40,49 @@ public virtual AuthResponse Authenticate(string username, string password, strin\n \n             var response = BaseClient.Post(resourcePath, authRequest.ToJson(), false);\n             return Utils.Deserialize<AuthResponse>(response);\n+        }\r\n+\r\n+        /// <summary>\r\n+        /// Authenticates an Okta user with Context Object\r\n+        /// </summary>\r\n+        /// <param name=\"username\">User's username/login</param>\r\n+        /// <param name=\"password\">User's password</param>\r\n+        /// <param name=\"deviceToken\">User's device token</param>\r\n+        /// <param name=\"ipAddress\">User's IP address</param>\r\n+        /// <param name=\"userAgent\">User's userAgent</param>\r\n+        /// <param name=\"relayState\">opaque value for the transaction and processed as untrusted data which is just echoed in a response. It is the client’s responsibility to escape/encode this value before displaying in a UI such as a HTML document </param>\r\n+        /// <param name=\"bWarnPasswordExpired\">Optional parameter indicating whether the PASSWORD_WARN status should be returned if available. Defaults to false</param>\r\n+        /// <param name=\"bMultiOptionalFactorEnroll\">Optional parameter indicating whether the user should be prompted to add an additional second factor if available </param>\r\n+        /// <returns></returns>\r\n+        public virtual AuthResponse AuthenticateWithContext(string username, string password, string deviceToken, string ipAddress = null, string userAgent = null, string relayState = null, bool bWarnPasswordExpired = false, bool bMultiOptionalFactorEnroll = false)\r","path":"Okta.Core/Clients/AuthClient.cs","position":86,"original_position":18,"commit_id":"e84a24706373e1e5ac4cc1d8e15b3bdb3a55ce16","original_commit_id":"ebea2bbb52fd8abfd26aa0019dad417714d9a472","user":{"login":"nbarbettini","id":7525482,"avatar_url":"https://avatars3.githubusercontent.com/u/7525482?v=3","gravatar_id":"","url":"https://api.github.com/users/nbarbettini","html_url":"https://github.com/nbarbettini","followers_url":"https://api.github.com/users/nbarbettini/followers","following_url":"https://api.github.com/users/nbarbettini/following{/other_user}","gists_url":"https://api.github.com/users/nbarbettini/gists{/gist_id}","starred_url":"https://api.github.com/users/nbarbettini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbarbettini/subscriptions","organizations_url":"https://api.github.com/users/nbarbettini/orgs","repos_url":"https://api.github.com/users/nbarbettini/repos","events_url":"https://api.github.com/users/nbarbettini/events{/privacy}","received_events_url":"https://api.github.com/users/nbarbettini/received_events","type":"User","site_admin":false},"body":"Since we made this change, can we remove the `AuthenticateWithContext` method now?","created_at":"2017-04-25T19:02:19Z","updated_at":"2017-04-25T19:02:19Z","html_url":"https://github.com/okta/oktasdk-csharp/pull/39#discussion_r113282555","pull_request_url":"https://api.github.com/repos/okta/oktasdk-csharp/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/okta/oktasdk-csharp/pulls/comments/113282555"},"html":{"href":"https://github.com/okta/oktasdk-csharp/pull/39#discussion_r113282555"},"pull_request":{"href":"https://api.github.com/repos/okta/oktasdk-csharp/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/okta/oktasdk-csharp/pulls/39","id":117322500,"html_url":"https://github.com/okta/oktasdk-csharp/pull/39","diff_url":"https://github.com/okta/oktasdk-csharp/pull/39.diff","patch_url":"https://github.com/okta/oktasdk-csharp/pull/39.patch","issue_url":"https://api.github.com/repos/okta/oktasdk-csharp/issues/39","number":39,"state":"open","locked":false,"title":"Add XFF Header as part of authentication","user":{"login":"jyotsnaraghunathan-okta","id":23368406,"avatar_url":"https://avatars2.githubusercontent.com/u/23368406?v=3","gravatar_id":"","url":"https://api.github.com/users/jyotsnaraghunathan-okta","html_url":"https://github.com/jyotsnaraghunathan-okta","followers_url":"https://api.github.com/users/jyotsnaraghunathan-okta/followers","following_url":"https://api.github.com/users/jyotsnaraghunathan-okta/following{/other_user}","gists_url":"https://api.github.com/users/jyotsnaraghunathan-okta/gists{/gist_id}","starred_url":"https://api.github.com/users/jyotsnaraghunathan-okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyotsnaraghunathan-okta/subscriptions","organizations_url":"https://api.github.com/users/jyotsnaraghunathan-okta/orgs","repos_url":"https://api.github.com/users/jyotsnaraghunathan-okta/repos","events_url":"https://api.github.com/users/jyotsnaraghunathan-okta/events{/privacy}","received_events_url":"https://api.github.com/users/jyotsnaraghunathan-okta/received_events","type":"User","site_admin":false},"body":"Client needs to pass XFF Header in the authn request to resolve network\r\nzone based MFA policies.","created_at":"2017-04-24T17:57:16Z","updated_at":"2017-04-25T19:02:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"adfb0d3e81fbd87f024667863eccb39da01ab55d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/okta/oktasdk-csharp/pulls/39/commits","review_comments_url":"https://api.github.com/repos/okta/oktasdk-csharp/pulls/39/comments","review_comment_url":"https://api.github.com/repos/okta/oktasdk-csharp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/okta/oktasdk-csharp/issues/39/comments","statuses_url":"https://api.github.com/repos/okta/oktasdk-csharp/statuses/e84a24706373e1e5ac4cc1d8e15b3bdb3a55ce16","head":{"label":"jyotsnaraghunathan-okta:master","ref":"master","sha":"e84a24706373e1e5ac4cc1d8e15b3bdb3a55ce16","user":{"login":"jyotsnaraghunathan-okta","id":23368406,"avatar_url":"https://avatars2.githubusercontent.com/u/23368406?v=3","gravatar_id":"","url":"https://api.github.com/users/jyotsnaraghunathan-okta","html_url":"https://github.com/jyotsnaraghunathan-okta","followers_url":"https://api.github.com/users/jyotsnaraghunathan-okta/followers","following_url":"https://api.github.com/users/jyotsnaraghunathan-okta/following{/other_user}","gists_url":"https://api.github.com/users/jyotsnaraghunathan-okta/gists{/gist_id}","starred_url":"https://api.github.com/users/jyotsnaraghunathan-okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyotsnaraghunathan-okta/subscriptions","organizations_url":"https://api.github.com/users/jyotsnaraghunathan-okta/orgs","repos_url":"https://api.github.com/users/jyotsnaraghunathan-okta/repos","events_url":"https://api.github.com/users/jyotsnaraghunathan-okta/events{/privacy}","received_events_url":"https://api.github.com/users/jyotsnaraghunathan-okta/received_events","type":"User","site_admin":false},"repo":{"id":89270528,"name":"oktasdk-csharp","full_name":"jyotsnaraghunathan-okta/oktasdk-csharp","owner":{"login":"jyotsnaraghunathan-okta","id":23368406,"avatar_url":"https://avatars2.githubusercontent.com/u/23368406?v=3","gravatar_id":"","url":"https://api.github.com/users/jyotsnaraghunathan-okta","html_url":"https://github.com/jyotsnaraghunathan-okta","followers_url":"https://api.github.com/users/jyotsnaraghunathan-okta/followers","following_url":"https://api.github.com/users/jyotsnaraghunathan-okta/following{/other_user}","gists_url":"https://api.github.com/users/jyotsnaraghunathan-okta/gists{/gist_id}","starred_url":"https://api.github.com/users/jyotsnaraghunathan-okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyotsnaraghunathan-okta/subscriptions","organizations_url":"https://api.github.com/users/jyotsnaraghunathan-okta/orgs","repos_url":"https://api.github.com/users/jyotsnaraghunathan-okta/repos","events_url":"https://api.github.com/users/jyotsnaraghunathan-okta/events{/privacy}","received_events_url":"https://api.github.com/users/jyotsnaraghunathan-okta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jyotsnaraghunathan-okta/oktasdk-csharp","description":null,"fork":true,"url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp","forks_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/forks","keys_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/teams","hooks_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/hooks","issue_events_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/issues/events{/number}","events_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/events","assignees_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/assignees{/user}","branches_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/branches{/branch}","tags_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/tags","blobs_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/git/refs{/sha}","trees_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/statuses/{sha}","languages_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/languages","stargazers_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/stargazers","contributors_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/contributors","subscribers_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/subscribers","subscription_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/subscription","commits_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/commits{/sha}","git_commits_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/git/commits{/sha}","comments_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/comments{/number}","issue_comment_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/issues/comments{/number}","contents_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/contents/{+path}","compare_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/merges","archive_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/downloads","issues_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/issues{/number}","pulls_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/pulls{/number}","milestones_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/milestones{/number}","notifications_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/labels{/name}","releases_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/releases{/id}","deployments_url":"https://api.github.com/repos/jyotsnaraghunathan-okta/oktasdk-csharp/deployments","created_at":"2017-04-24T17:54:05Z","updated_at":"2017-04-24T17:54:07Z","pushed_at":"2017-04-25T18:57:31Z","git_url":"git://github.com/jyotsnaraghunathan-okta/oktasdk-csharp.git","ssh_url":"git@github.com:jyotsnaraghunathan-okta/oktasdk-csharp.git","clone_url":"https://github.com/jyotsnaraghunathan-okta/oktasdk-csharp.git","svn_url":"https://github.com/jyotsnaraghunathan-okta/oktasdk-csharp","homepage":null,"size":906,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"cec1d06784d5ddce344df8ba14e945a1ad338efe","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":26284071,"name":"oktasdk-csharp","full_name":"okta/oktasdk-csharp","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/oktasdk-csharp","description":null,"fork":false,"url":"https://api.github.com/repos/okta/oktasdk-csharp","forks_url":"https://api.github.com/repos/okta/oktasdk-csharp/forks","keys_url":"https://api.github.com/repos/okta/oktasdk-csharp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okta/oktasdk-csharp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okta/oktasdk-csharp/teams","hooks_url":"https://api.github.com/repos/okta/oktasdk-csharp/hooks","issue_events_url":"https://api.github.com/repos/okta/oktasdk-csharp/issues/events{/number}","events_url":"https://api.github.com/repos/okta/oktasdk-csharp/events","assignees_url":"https://api.github.com/repos/okta/oktasdk-csharp/assignees{/user}","branches_url":"https://api.github.com/repos/okta/oktasdk-csharp/branches{/branch}","tags_url":"https://api.github.com/repos/okta/oktasdk-csharp/tags","blobs_url":"https://api.github.com/repos/okta/oktasdk-csharp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okta/oktasdk-csharp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okta/oktasdk-csharp/git/refs{/sha}","trees_url":"https://api.github.com/repos/okta/oktasdk-csharp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okta/oktasdk-csharp/statuses/{sha}","languages_url":"https://api.github.com/repos/okta/oktasdk-csharp/languages","stargazers_url":"https://api.github.com/repos/okta/oktasdk-csharp/stargazers","contributors_url":"https://api.github.com/repos/okta/oktasdk-csharp/contributors","subscribers_url":"https://api.github.com/repos/okta/oktasdk-csharp/subscribers","subscription_url":"https://api.github.com/repos/okta/oktasdk-csharp/subscription","commits_url":"https://api.github.com/repos/okta/oktasdk-csharp/commits{/sha}","git_commits_url":"https://api.github.com/repos/okta/oktasdk-csharp/git/commits{/sha}","comments_url":"https://api.github.com/repos/okta/oktasdk-csharp/comments{/number}","issue_comment_url":"https://api.github.com/repos/okta/oktasdk-csharp/issues/comments{/number}","contents_url":"https://api.github.com/repos/okta/oktasdk-csharp/contents/{+path}","compare_url":"https://api.github.com/repos/okta/oktasdk-csharp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okta/oktasdk-csharp/merges","archive_url":"https://api.github.com/repos/okta/oktasdk-csharp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okta/oktasdk-csharp/downloads","issues_url":"https://api.github.com/repos/okta/oktasdk-csharp/issues{/number}","pulls_url":"https://api.github.com/repos/okta/oktasdk-csharp/pulls{/number}","milestones_url":"https://api.github.com/repos/okta/oktasdk-csharp/milestones{/number}","notifications_url":"https://api.github.com/repos/okta/oktasdk-csharp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okta/oktasdk-csharp/labels{/name}","releases_url":"https://api.github.com/repos/okta/oktasdk-csharp/releases{/id}","deployments_url":"https://api.github.com/repos/okta/oktasdk-csharp/deployments","created_at":"2014-11-06T18:38:30Z","updated_at":"2017-04-02T08:45:53Z","pushed_at":"2017-04-25T18:57:33Z","git_url":"git://github.com/okta/oktasdk-csharp.git","ssh_url":"git@github.com:okta/oktasdk-csharp.git","clone_url":"https://github.com/okta/oktasdk-csharp.git","svn_url":"https://github.com/okta/oktasdk-csharp","homepage":null,"size":907,"stargazers_count":10,"watchers_count":10,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":7,"forks":21,"open_issues":7,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/okta/oktasdk-csharp/pulls/39"},"html":{"href":"https://github.com/okta/oktasdk-csharp/pull/39"},"issue":{"href":"https://api.github.com/repos/okta/oktasdk-csharp/issues/39"},"comments":{"href":"https://api.github.com/repos/okta/oktasdk-csharp/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/okta/oktasdk-csharp/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/okta/oktasdk-csharp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/okta/oktasdk-csharp/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/okta/oktasdk-csharp/statuses/e84a24706373e1e5ac4cc1d8e15b3bdb3a55ce16"}}}}
{"actor":{"display_login":"nbarbettini"}}