{"action":"created","comment":{"url":"https://api.github.com/repos/prakashrajpoudel/website/pulls/comments/70136750","id":70136750,"diff_hunk":"@@ -0,0 +1,20 @@\n+package org.government.authentication.authenticator;\n+\n+import org.government.api.User;\n+\n+import com.google.common.base.Optional;\n+\n+import io.dropwizard.auth.AuthenticationException;\n+import io.dropwizard.auth.Authenticator;\n+import io.dropwizard.auth.basic.BasicCredentials;\n+\n+public class SimpleAuthenticator implements Authenticator<BasicCredentials, User> {\n+\n+\tpublic Optional<User> authenticate(BasicCredentials credentials) throws AuthenticationException {\n+\t\tif (\"secret\".equals(credentials.getPassword())) {\n+\t\t\treturn Optional.of(new User(credentials.getUsername(), \"sample\", \"sample\"));","path":"district/src/main/java/org/government/authentication/authenticator/SimpleAuthenticator.java","position":15,"original_position":15,"commit_id":"690e21ff5c0c910d282a9a5f9410f9dac7e471f9","original_commit_id":"690e21ff5c0c910d282a9a5f9410f9dac7e471f9","user":{"login":"prakashrajpoudel","id":285185,"avatar_url":"https://avatars.githubusercontent.com/u/285185?v=3","gravatar_id":"","url":"https://api.github.com/users/prakashrajpoudel","html_url":"https://github.com/prakashrajpoudel","followers_url":"https://api.github.com/users/prakashrajpoudel/followers","following_url":"https://api.github.com/users/prakashrajpoudel/following{/other_user}","gists_url":"https://api.github.com/users/prakashrajpoudel/gists{/gist_id}","starred_url":"https://api.github.com/users/prakashrajpoudel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prakashrajpoudel/subscriptions","organizations_url":"https://api.github.com/users/prakashrajpoudel/orgs","repos_url":"https://api.github.com/users/prakashrajpoudel/repos","events_url":"https://api.github.com/users/prakashrajpoudel/events{/privacy}","received_events_url":"https://api.github.com/users/prakashrajpoudel/received_events","type":"User","site_admin":false},"body":"Open an issue to pull records from Database and validate against it for user password authentication and write TODO comment.","created_at":"2016-07-08T20:34:42Z","updated_at":"2016-07-08T20:34:42Z","html_url":"https://github.com/prakashrajpoudel/website/pull/3#discussion_r70136750","pull_request_url":"https://api.github.com/repos/prakashrajpoudel/website/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/prakashrajpoudel/website/pulls/comments/70136750"},"html":{"href":"https://github.com/prakashrajpoudel/website/pull/3#discussion_r70136750"},"pull_request":{"href":"https://api.github.com/repos/prakashrajpoudel/website/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/prakashrajpoudel/website/pulls/3","id":76806757,"html_url":"https://github.com/prakashrajpoudel/website/pull/3","diff_url":"https://github.com/prakashrajpoudel/website/pull/3.diff","patch_url":"https://github.com/prakashrajpoudel/website/pull/3.patch","issue_url":"https://api.github.com/repos/prakashrajpoudel/website/issues/3","number":3,"state":"open","locked":false,"title":"Added drop wizard authenticator","user":{"login":"prakashrajpoudel","id":285185,"avatar_url":"https://avatars.githubusercontent.com/u/285185?v=3","gravatar_id":"","url":"https://api.github.com/users/prakashrajpoudel","html_url":"https://github.com/prakashrajpoudel","followers_url":"https://api.github.com/users/prakashrajpoudel/followers","following_url":"https://api.github.com/users/prakashrajpoudel/following{/other_user}","gists_url":"https://api.github.com/users/prakashrajpoudel/gists{/gist_id}","starred_url":"https://api.github.com/users/prakashrajpoudel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prakashrajpoudel/subscriptions","organizations_url":"https://api.github.com/users/prakashrajpoudel/orgs","repos_url":"https://api.github.com/users/prakashrajpoudel/repos","events_url":"https://api.github.com/users/prakashrajpoudel/events{/privacy}","received_events_url":"https://api.github.com/users/prakashrajpoudel/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-08T20:04:38Z","updated_at":"2016-07-08T20:34:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"edeeff847b3baa0c9def71e3492e2a5aea53ae06","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/prakashrajpoudel/website/pulls/3/commits","review_comments_url":"https://api.github.com/repos/prakashrajpoudel/website/pulls/3/comments","review_comment_url":"https://api.github.com/repos/prakashrajpoudel/website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prakashrajpoudel/website/issues/3/comments","statuses_url":"https://api.github.com/repos/prakashrajpoudel/website/statuses/690e21ff5c0c910d282a9a5f9410f9dac7e471f9","head":{"label":"prakashrajpoudel:authentication","ref":"authentication","sha":"690e21ff5c0c910d282a9a5f9410f9dac7e471f9","user":{"login":"prakashrajpoudel","id":285185,"avatar_url":"https://avatars.githubusercontent.com/u/285185?v=3","gravatar_id":"","url":"https://api.github.com/users/prakashrajpoudel","html_url":"https://github.com/prakashrajpoudel","followers_url":"https://api.github.com/users/prakashrajpoudel/followers","following_url":"https://api.github.com/users/prakashrajpoudel/following{/other_user}","gists_url":"https://api.github.com/users/prakashrajpoudel/gists{/gist_id}","starred_url":"https://api.github.com/users/prakashrajpoudel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prakashrajpoudel/subscriptions","organizations_url":"https://api.github.com/users/prakashrajpoudel/orgs","repos_url":"https://api.github.com/users/prakashrajpoudel/repos","events_url":"https://api.github.com/users/prakashrajpoudel/events{/privacy}","received_events_url":"https://api.github.com/users/prakashrajpoudel/received_events","type":"User","site_admin":false},"repo":{"id":11239897,"name":"website","full_name":"prakashrajpoudel/website","owner":{"login":"prakashrajpoudel","id":285185,"avatar_url":"https://avatars.githubusercontent.com/u/285185?v=3","gravatar_id":"","url":"https://api.github.com/users/prakashrajpoudel","html_url":"https://github.com/prakashrajpoudel","followers_url":"https://api.github.com/users/prakashrajpoudel/followers","following_url":"https://api.github.com/users/prakashrajpoudel/following{/other_user}","gists_url":"https://api.github.com/users/prakashrajpoudel/gists{/gist_id}","starred_url":"https://api.github.com/users/prakashrajpoudel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prakashrajpoudel/subscriptions","organizations_url":"https://api.github.com/users/prakashrajpoudel/orgs","repos_url":"https://api.github.com/users/prakashrajpoudel/repos","events_url":"https://api.github.com/users/prakashrajpoudel/events{/privacy}","received_events_url":"https://api.github.com/users/prakashrajpoudel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prakashrajpoudel/website","description":"website","fork":false,"url":"https://api.github.com/repos/prakashrajpoudel/website","forks_url":"https://api.github.com/repos/prakashrajpoudel/website/forks","keys_url":"https://api.github.com/repos/prakashrajpoudel/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prakashrajpoudel/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prakashrajpoudel/website/teams","hooks_url":"https://api.github.com/repos/prakashrajpoudel/website/hooks","issue_events_url":"https://api.github.com/repos/prakashrajpoudel/website/issues/events{/number}","events_url":"https://api.github.com/repos/prakashrajpoudel/website/events","assignees_url":"https://api.github.com/repos/prakashrajpoudel/website/assignees{/user}","branches_url":"https://api.github.com/repos/prakashrajpoudel/website/branches{/branch}","tags_url":"https://api.github.com/repos/prakashrajpoudel/website/tags","blobs_url":"https://api.github.com/repos/prakashrajpoudel/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prakashrajpoudel/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prakashrajpoudel/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/prakashrajpoudel/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prakashrajpoudel/website/statuses/{sha}","languages_url":"https://api.github.com/repos/prakashrajpoudel/website/languages","stargazers_url":"https://api.github.com/repos/prakashrajpoudel/website/stargazers","contributors_url":"https://api.github.com/repos/prakashrajpoudel/website/contributors","subscribers_url":"https://api.github.com/repos/prakashrajpoudel/website/subscribers","subscription_url":"https://api.github.com/repos/prakashrajpoudel/website/subscription","commits_url":"https://api.github.com/repos/prakashrajpoudel/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/prakashrajpoudel/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/prakashrajpoudel/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/prakashrajpoudel/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/prakashrajpoudel/website/contents/{+path}","compare_url":"https://api.github.com/repos/prakashrajpoudel/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prakashrajpoudel/website/merges","archive_url":"https://api.github.com/repos/prakashrajpoudel/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prakashrajpoudel/website/downloads","issues_url":"https://api.github.com/repos/prakashrajpoudel/website/issues{/number}","pulls_url":"https://api.github.com/repos/prakashrajpoudel/website/pulls{/number}","milestones_url":"https://api.github.com/repos/prakashrajpoudel/website/milestones{/number}","notifications_url":"https://api.github.com/repos/prakashrajpoudel/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prakashrajpoudel/website/labels{/name}","releases_url":"https://api.github.com/repos/prakashrajpoudel/website/releases{/id}","deployments_url":"https://api.github.com/repos/prakashrajpoudel/website/deployments","created_at":"2013-07-07T20:46:13Z","updated_at":"2016-06-25T18:01:24Z","pushed_at":"2016-07-08T20:04:38Z","git_url":"git://github.com/prakashrajpoudel/website.git","ssh_url":"git@github.com:prakashrajpoudel/website.git","clone_url":"https://github.com/prakashrajpoudel/website.git","svn_url":"https://github.com/prakashrajpoudel/website","homepage":null,"size":109,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"prakashrajpoudel:personal","ref":"personal","sha":"c8a97bb171988eebd47eeee7356297ae07b482f4","user":{"login":"prakashrajpoudel","id":285185,"avatar_url":"https://avatars.githubusercontent.com/u/285185?v=3","gravatar_id":"","url":"https://api.github.com/users/prakashrajpoudel","html_url":"https://github.com/prakashrajpoudel","followers_url":"https://api.github.com/users/prakashrajpoudel/followers","following_url":"https://api.github.com/users/prakashrajpoudel/following{/other_user}","gists_url":"https://api.github.com/users/prakashrajpoudel/gists{/gist_id}","starred_url":"https://api.github.com/users/prakashrajpoudel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prakashrajpoudel/subscriptions","organizations_url":"https://api.github.com/users/prakashrajpoudel/orgs","repos_url":"https://api.github.com/users/prakashrajpoudel/repos","events_url":"https://api.github.com/users/prakashrajpoudel/events{/privacy}","received_events_url":"https://api.github.com/users/prakashrajpoudel/received_events","type":"User","site_admin":false},"repo":{"id":11239897,"name":"website","full_name":"prakashrajpoudel/website","owner":{"login":"prakashrajpoudel","id":285185,"avatar_url":"https://avatars.githubusercontent.com/u/285185?v=3","gravatar_id":"","url":"https://api.github.com/users/prakashrajpoudel","html_url":"https://github.com/prakashrajpoudel","followers_url":"https://api.github.com/users/prakashrajpoudel/followers","following_url":"https://api.github.com/users/prakashrajpoudel/following{/other_user}","gists_url":"https://api.github.com/users/prakashrajpoudel/gists{/gist_id}","starred_url":"https://api.github.com/users/prakashrajpoudel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prakashrajpoudel/subscriptions","organizations_url":"https://api.github.com/users/prakashrajpoudel/orgs","repos_url":"https://api.github.com/users/prakashrajpoudel/repos","events_url":"https://api.github.com/users/prakashrajpoudel/events{/privacy}","received_events_url":"https://api.github.com/users/prakashrajpoudel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prakashrajpoudel/website","description":"website","fork":false,"url":"https://api.github.com/repos/prakashrajpoudel/website","forks_url":"https://api.github.com/repos/prakashrajpoudel/website/forks","keys_url":"https://api.github.com/repos/prakashrajpoudel/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prakashrajpoudel/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prakashrajpoudel/website/teams","hooks_url":"https://api.github.com/repos/prakashrajpoudel/website/hooks","issue_events_url":"https://api.github.com/repos/prakashrajpoudel/website/issues/events{/number}","events_url":"https://api.github.com/repos/prakashrajpoudel/website/events","assignees_url":"https://api.github.com/repos/prakashrajpoudel/website/assignees{/user}","branches_url":"https://api.github.com/repos/prakashrajpoudel/website/branches{/branch}","tags_url":"https://api.github.com/repos/prakashrajpoudel/website/tags","blobs_url":"https://api.github.com/repos/prakashrajpoudel/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prakashrajpoudel/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prakashrajpoudel/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/prakashrajpoudel/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prakashrajpoudel/website/statuses/{sha}","languages_url":"https://api.github.com/repos/prakashrajpoudel/website/languages","stargazers_url":"https://api.github.com/repos/prakashrajpoudel/website/stargazers","contributors_url":"https://api.github.com/repos/prakashrajpoudel/website/contributors","subscribers_url":"https://api.github.com/repos/prakashrajpoudel/website/subscribers","subscription_url":"https://api.github.com/repos/prakashrajpoudel/website/subscription","commits_url":"https://api.github.com/repos/prakashrajpoudel/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/prakashrajpoudel/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/prakashrajpoudel/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/prakashrajpoudel/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/prakashrajpoudel/website/contents/{+path}","compare_url":"https://api.github.com/repos/prakashrajpoudel/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prakashrajpoudel/website/merges","archive_url":"https://api.github.com/repos/prakashrajpoudel/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prakashrajpoudel/website/downloads","issues_url":"https://api.github.com/repos/prakashrajpoudel/website/issues{/number}","pulls_url":"https://api.github.com/repos/prakashrajpoudel/website/pulls{/number}","milestones_url":"https://api.github.com/repos/prakashrajpoudel/website/milestones{/number}","notifications_url":"https://api.github.com/repos/prakashrajpoudel/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prakashrajpoudel/website/labels{/name}","releases_url":"https://api.github.com/repos/prakashrajpoudel/website/releases{/id}","deployments_url":"https://api.github.com/repos/prakashrajpoudel/website/deployments","created_at":"2013-07-07T20:46:13Z","updated_at":"2016-06-25T18:01:24Z","pushed_at":"2016-07-08T20:04:38Z","git_url":"git://github.com/prakashrajpoudel/website.git","ssh_url":"git@github.com:prakashrajpoudel/website.git","clone_url":"https://github.com/prakashrajpoudel/website.git","svn_url":"https://github.com/prakashrajpoudel/website","homepage":null,"size":109,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prakashrajpoudel/website/pulls/3"},"html":{"href":"https://github.com/prakashrajpoudel/website/pull/3"},"issue":{"href":"https://api.github.com/repos/prakashrajpoudel/website/issues/3"},"comments":{"href":"https://api.github.com/repos/prakashrajpoudel/website/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/prakashrajpoudel/website/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/prakashrajpoudel/website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prakashrajpoudel/website/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/prakashrajpoudel/website/statuses/690e21ff5c0c910d282a9a5f9410f9dac7e471f9"}}}}
{"actor":{"display_login":"prakashrajpoudel"}}