{"action":"created","comment":{"url":"https://api.github.com/repos/aayushKhandpur/weightmaster/pulls/comments/227534045","pull_request_review_id":167598693,"id":227534045,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzUzNDA0NQ==","diff_hunk":"@@ -0,0 +1,36 @@\n+package creativei.service.securityhelpers;\n+\n+import creativei.entity.User;\n+import creativei.exception.ApplicationLevelException;\n+import creativei.service.UserService;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.security.core.userdetails.UserDetails;\n+import org.springframework.security.core.userdetails.UserDetailsService;\n+import org.springframework.security.core.userdetails.UsernameNotFoundException;\n+import org.springframework.stereotype.Service;\n+\n+@Service(\"customeUserDetailService\")\n+public class CustomeUserDetailService implements UserDetailsService{\n+\tprivate static final Logger logger = LoggerFactory.getLogger(CustomeUserDetailService.class);\n+\t@Autowired\n+\tprivate UserService userService;\n+\t\n+\t@Override\n+\tpublic UserDetails loadUserByUsername(String userName) throws UsernameNotFoundException {\n+\t\tUser user;\n+\t\ttry {\n+\t\t\tuser = userService.getByUserName(userName);\n+\t\t\tif(user == null) {\n+\t\t\t\tlogger.error(\"User with %s doesn't exist!\", userName);","path":"src/main/java/creativei/service/securityhelpers/CustomeUserDetailService.java","position":26,"original_position":26,"commit_id":"1d3cdec51cdec0a7daa1402599ee1839e86d3cf0","original_commit_id":"1d3cdec51cdec0a7daa1402599ee1839e86d3cf0","user":{"login":"aayushKhandpur","id":10972958,"node_id":"MDQ6VXNlcjEwOTcyOTU4","avatar_url":"https://avatars0.githubusercontent.com/u/10972958?v=4","gravatar_id":"","url":"https://api.github.com/users/aayushKhandpur","html_url":"https://github.com/aayushKhandpur","followers_url":"https://api.github.com/users/aayushKhandpur/followers","following_url":"https://api.github.com/users/aayushKhandpur/following{/other_user}","gists_url":"https://api.github.com/users/aayushKhandpur/gists{/gist_id}","starred_url":"https://api.github.com/users/aayushKhandpur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aayushKhandpur/subscriptions","organizations_url":"https://api.github.com/users/aayushKhandpur/orgs","repos_url":"https://api.github.com/users/aayushKhandpur/repos","events_url":"https://api.github.com/users/aayushKhandpur/events{/privacy}","received_events_url":"https://api.github.com/users/aayushKhandpur/received_events","type":"User","site_admin":false},"body":"Use constant and avoid duplicating comment.","created_at":"2018-10-23T19:33:11Z","updated_at":"2018-10-23T19:33:11Z","html_url":"https://github.com/aayushKhandpur/weightmaster/pull/44#discussion_r227534045","pull_request_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/pulls/44","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/aayushKhandpur/weightmaster/pulls/comments/227534045"},"html":{"href":"https://github.com/aayushKhandpur/weightmaster/pull/44#discussion_r227534045"},"pull_request":{"href":"https://api.github.com/repos/aayushKhandpur/weightmaster/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/aayushKhandpur/weightmaster/pulls/44","id":225115602,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1MTE1NjAy","html_url":"https://github.com/aayushKhandpur/weightmaster/pull/44","diff_url":"https://github.com/aayushKhandpur/weightmaster/pull/44.diff","patch_url":"https://github.com/aayushKhandpur/weightmaster/pull/44.patch","issue_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/issues/44","number":44,"state":"open","locked":false,"title":"Auth impl","user":{"login":"manojkrsaini09","id":16777011,"node_id":"MDQ6VXNlcjE2Nzc3MDEx","avatar_url":"https://avatars0.githubusercontent.com/u/16777011?v=4","gravatar_id":"","url":"https://api.github.com/users/manojkrsaini09","html_url":"https://github.com/manojkrsaini09","followers_url":"https://api.github.com/users/manojkrsaini09/followers","following_url":"https://api.github.com/users/manojkrsaini09/following{/other_user}","gists_url":"https://api.github.com/users/manojkrsaini09/gists{/gist_id}","starred_url":"https://api.github.com/users/manojkrsaini09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manojkrsaini09/subscriptions","organizations_url":"https://api.github.com/users/manojkrsaini09/orgs","repos_url":"https://api.github.com/users/manojkrsaini09/repos","events_url":"https://api.github.com/users/manojkrsaini09/events{/privacy}","received_events_url":"https://api.github.com/users/manojkrsaini09/received_events","type":"User","site_admin":false},"body":"Added spring security with user, role table. Added client side handling and a simple login page.","created_at":"2018-10-23T17:00:09Z","updated_at":"2018-10-23T19:33:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6e8bb689f16694bab96f876fa46ba7f00a4b8ea","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/pulls/44/commits","review_comments_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/pulls/44/comments","review_comment_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/issues/44/comments","statuses_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/statuses/1d3cdec51cdec0a7daa1402599ee1839e86d3cf0","head":{"label":"aayushKhandpur:auth-impl","ref":"auth-impl","sha":"1d3cdec51cdec0a7daa1402599ee1839e86d3cf0","user":{"login":"aayushKhandpur","id":10972958,"node_id":"MDQ6VXNlcjEwOTcyOTU4","avatar_url":"https://avatars0.githubusercontent.com/u/10972958?v=4","gravatar_id":"","url":"https://api.github.com/users/aayushKhandpur","html_url":"https://github.com/aayushKhandpur","followers_url":"https://api.github.com/users/aayushKhandpur/followers","following_url":"https://api.github.com/users/aayushKhandpur/following{/other_user}","gists_url":"https://api.github.com/users/aayushKhandpur/gists{/gist_id}","starred_url":"https://api.github.com/users/aayushKhandpur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aayushKhandpur/subscriptions","organizations_url":"https://api.github.com/users/aayushKhandpur/orgs","repos_url":"https://api.github.com/users/aayushKhandpur/repos","events_url":"https://api.github.com/users/aayushKhandpur/events{/privacy}","received_events_url":"https://api.github.com/users/aayushKhandpur/received_events","type":"User","site_admin":false},"repo":{"id":128669293,"node_id":"MDEwOlJlcG9zaXRvcnkxMjg2NjkyOTM=","name":"weightmaster","full_name":"aayushKhandpur/weightmaster","private":false,"owner":{"login":"aayushKhandpur","id":10972958,"node_id":"MDQ6VXNlcjEwOTcyOTU4","avatar_url":"https://avatars0.githubusercontent.com/u/10972958?v=4","gravatar_id":"","url":"https://api.github.com/users/aayushKhandpur","html_url":"https://github.com/aayushKhandpur","followers_url":"https://api.github.com/users/aayushKhandpur/followers","following_url":"https://api.github.com/users/aayushKhandpur/following{/other_user}","gists_url":"https://api.github.com/users/aayushKhandpur/gists{/gist_id}","starred_url":"https://api.github.com/users/aayushKhandpur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aayushKhandpur/subscriptions","organizations_url":"https://api.github.com/users/aayushKhandpur/orgs","repos_url":"https://api.github.com/users/aayushKhandpur/repos","events_url":"https://api.github.com/users/aayushKhandpur/events{/privacy}","received_events_url":"https://api.github.com/users/aayushKhandpur/received_events","type":"User","site_admin":false},"html_url":"https://github.com/aayushKhandpur/weightmaster","description":null,"fork":false,"url":"https://api.github.com/repos/aayushKhandpur/weightmaster","forks_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/forks","keys_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/teams","hooks_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/hooks","issue_events_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/issues/events{/number}","events_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/events","assignees_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/assignees{/user}","branches_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/branches{/branch}","tags_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/tags","blobs_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/git/refs{/sha}","trees_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/statuses/{sha}","languages_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/languages","stargazers_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/stargazers","contributors_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/contributors","subscribers_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/subscribers","subscription_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/subscription","commits_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/commits{/sha}","git_commits_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/git/commits{/sha}","comments_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/comments{/number}","issue_comment_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/issues/comments{/number}","contents_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/contents/{+path}","compare_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/merges","archive_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/downloads","issues_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/issues{/number}","pulls_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/pulls{/number}","milestones_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/milestones{/number}","notifications_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/labels{/name}","releases_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/releases{/id}","deployments_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/deployments","created_at":"2018-04-08T18:19:15Z","updated_at":"2018-10-03T04:59:48Z","pushed_at":"2018-10-23T17:00:09Z","git_url":"git://github.com/aayushKhandpur/weightmaster.git","ssh_url":"git@github.com:aayushKhandpur/weightmaster.git","clone_url":"https://github.com/aayushKhandpur/weightmaster.git","svn_url":"https://github.com/aayushKhandpur/weightmaster","homepage":null,"size":3847,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"aayushKhandpur:master","ref":"master","sha":"5a68652b418af6422cc477b4c830915b01a8c2af","user":{"login":"aayushKhandpur","id":10972958,"node_id":"MDQ6VXNlcjEwOTcyOTU4","avatar_url":"https://avatars0.githubusercontent.com/u/10972958?v=4","gravatar_id":"","url":"https://api.github.com/users/aayushKhandpur","html_url":"https://github.com/aayushKhandpur","followers_url":"https://api.github.com/users/aayushKhandpur/followers","following_url":"https://api.github.com/users/aayushKhandpur/following{/other_user}","gists_url":"https://api.github.com/users/aayushKhandpur/gists{/gist_id}","starred_url":"https://api.github.com/users/aayushKhandpur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aayushKhandpur/subscriptions","organizations_url":"https://api.github.com/users/aayushKhandpur/orgs","repos_url":"https://api.github.com/users/aayushKhandpur/repos","events_url":"https://api.github.com/users/aayushKhandpur/events{/privacy}","received_events_url":"https://api.github.com/users/aayushKhandpur/received_events","type":"User","site_admin":false},"repo":{"id":128669293,"node_id":"MDEwOlJlcG9zaXRvcnkxMjg2NjkyOTM=","name":"weightmaster","full_name":"aayushKhandpur/weightmaster","private":false,"owner":{"login":"aayushKhandpur","id":10972958,"node_id":"MDQ6VXNlcjEwOTcyOTU4","avatar_url":"https://avatars0.githubusercontent.com/u/10972958?v=4","gravatar_id":"","url":"https://api.github.com/users/aayushKhandpur","html_url":"https://github.com/aayushKhandpur","followers_url":"https://api.github.com/users/aayushKhandpur/followers","following_url":"https://api.github.com/users/aayushKhandpur/following{/other_user}","gists_url":"https://api.github.com/users/aayushKhandpur/gists{/gist_id}","starred_url":"https://api.github.com/users/aayushKhandpur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aayushKhandpur/subscriptions","organizations_url":"https://api.github.com/users/aayushKhandpur/orgs","repos_url":"https://api.github.com/users/aayushKhandpur/repos","events_url":"https://api.github.com/users/aayushKhandpur/events{/privacy}","received_events_url":"https://api.github.com/users/aayushKhandpur/received_events","type":"User","site_admin":false},"html_url":"https://github.com/aayushKhandpur/weightmaster","description":null,"fork":false,"url":"https://api.github.com/repos/aayushKhandpur/weightmaster","forks_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/forks","keys_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/teams","hooks_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/hooks","issue_events_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/issues/events{/number}","events_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/events","assignees_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/assignees{/user}","branches_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/branches{/branch}","tags_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/tags","blobs_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/git/refs{/sha}","trees_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/statuses/{sha}","languages_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/languages","stargazers_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/stargazers","contributors_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/contributors","subscribers_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/subscribers","subscription_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/subscription","commits_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/commits{/sha}","git_commits_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/git/commits{/sha}","comments_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/comments{/number}","issue_comment_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/issues/comments{/number}","contents_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/contents/{+path}","compare_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/merges","archive_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/downloads","issues_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/issues{/number}","pulls_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/pulls{/number}","milestones_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/milestones{/number}","notifications_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/labels{/name}","releases_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/releases{/id}","deployments_url":"https://api.github.com/repos/aayushKhandpur/weightmaster/deployments","created_at":"2018-04-08T18:19:15Z","updated_at":"2018-10-03T04:59:48Z","pushed_at":"2018-10-23T17:00:09Z","git_url":"git://github.com/aayushKhandpur/weightmaster.git","ssh_url":"git@github.com:aayushKhandpur/weightmaster.git","clone_url":"https://github.com/aayushKhandpur/weightmaster.git","svn_url":"https://github.com/aayushKhandpur/weightmaster","homepage":null,"size":3847,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aayushKhandpur/weightmaster/pulls/44"},"html":{"href":"https://github.com/aayushKhandpur/weightmaster/pull/44"},"issue":{"href":"https://api.github.com/repos/aayushKhandpur/weightmaster/issues/44"},"comments":{"href":"https://api.github.com/repos/aayushKhandpur/weightmaster/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/aayushKhandpur/weightmaster/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/aayushKhandpur/weightmaster/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aayushKhandpur/weightmaster/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/aayushKhandpur/weightmaster/statuses/1d3cdec51cdec0a7daa1402599ee1839e86d3cf0"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"aayushKhandpur"}}