{"action":"created","comment":{"url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/pulls/comments/63339075","id":63339075,"diff_hunk":"@@ -104,4 +104,17 @@ public User findByAuthProviderAndUserKey(String authProvider, String userKey) {\n     public Map<String, EntityFilter<User>> getFilters() {\n         return filter.getFilters();\n     }\n+\n+    @Override\n+    public void deleteAllRefreshToken() {\n+        String jpql = \"DELETE FROM UserToken\";\n+        Query query = em.createQuery(jpql);\n+        query.executeUpdate();\n+    }\n+\n+    @Override\n+    public void deleteRefreshToken(String refreshToken) {\n+        UserToken userToken = findUserTokenByRefreshToken(refreshToken);","path":"src/main/java/com/lftechnology/vyaguta/auth/dao/UserDaoImpl.java","position":14,"original_position":14,"commit_id":"f33a3bad448b646814d1b773e8cd93ebaeadb691","original_commit_id":"f33a3bad448b646814d1b773e8cd93ebaeadb691","user":{"login":"lf-kailashraj","id":7426244,"avatar_url":"https://avatars.githubusercontent.com/u/7426244?v=3","gravatar_id":"","url":"https://api.github.com/users/lf-kailashraj","html_url":"https://github.com/lf-kailashraj","followers_url":"https://api.github.com/users/lf-kailashraj/followers","following_url":"https://api.github.com/users/lf-kailashraj/following{/other_user}","gists_url":"https://api.github.com/users/lf-kailashraj/gists{/gist_id}","starred_url":"https://api.github.com/users/lf-kailashraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lf-kailashraj/subscriptions","organizations_url":"https://api.github.com/users/lf-kailashraj/orgs","repos_url":"https://api.github.com/users/lf-kailashraj/repos","events_url":"https://api.github.com/users/lf-kailashraj/events{/privacy}","received_events_url":"https://api.github.com/users/lf-kailashraj/received_events","type":"User","site_admin":false},"body":"what if the method returned null value?","created_at":"2016-05-16T11:09:48Z","updated_at":"2016-05-16T11:09:48Z","html_url":"https://github.com/leapfrogtechnology/vyaguta-auth/pull/38#discussion_r63339075","pull_request_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/pulls/comments/63339075"},"html":{"href":"https://github.com/leapfrogtechnology/vyaguta-auth/pull/38#discussion_r63339075"},"pull_request":{"href":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/pulls/38","id":70178729,"html_url":"https://github.com/leapfrogtechnology/vyaguta-auth/pull/38","diff_url":"https://github.com/leapfrogtechnology/vyaguta-auth/pull/38.diff","patch_url":"https://github.com/leapfrogtechnology/vyaguta-auth/pull/38.patch","issue_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/issues/38","number":38,"state":"open","locked":false,"title":"VY-AUTH-37 Logout functionality","user":{"login":"prkandel","id":15976915,"avatar_url":"https://avatars.githubusercontent.com/u/15976915?v=3","gravatar_id":"","url":"https://api.github.com/users/prkandel","html_url":"https://github.com/prkandel","followers_url":"https://api.github.com/users/prkandel/followers","following_url":"https://api.github.com/users/prkandel/following{/other_user}","gists_url":"https://api.github.com/users/prkandel/gists{/gist_id}","starred_url":"https://api.github.com/users/prkandel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prkandel/subscriptions","organizations_url":"https://api.github.com/users/prkandel/orgs","repos_url":"https://api.github.com/users/prkandel/repos","events_url":"https://api.github.com/users/prkandel/events{/privacy}","received_events_url":"https://api.github.com/users/prkandel/received_events","type":"User","site_admin":false},"body":"Delete given refresh token when header contains refresh and access token,\r\nDelete all refresh token when header contains access token on\r\nPOST request /auth/logout","created_at":"2016-05-16T10:39:57Z","updated_at":"2016-05-16T11:09:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"31218606ba3aa450ce031010ff4a6cda91c95b7d","assignee":{"login":"lf-achyutpkl","id":16873122,"avatar_url":"https://avatars.githubusercontent.com/u/16873122?v=3","gravatar_id":"","url":"https://api.github.com/users/lf-achyutpkl","html_url":"https://github.com/lf-achyutpkl","followers_url":"https://api.github.com/users/lf-achyutpkl/followers","following_url":"https://api.github.com/users/lf-achyutpkl/following{/other_user}","gists_url":"https://api.github.com/users/lf-achyutpkl/gists{/gist_id}","starred_url":"https://api.github.com/users/lf-achyutpkl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lf-achyutpkl/subscriptions","organizations_url":"https://api.github.com/users/lf-achyutpkl/orgs","repos_url":"https://api.github.com/users/lf-achyutpkl/repos","events_url":"https://api.github.com/users/lf-achyutpkl/events{/privacy}","received_events_url":"https://api.github.com/users/lf-achyutpkl/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/pulls/38/commits","review_comments_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/pulls/38/comments","review_comment_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/issues/38/comments","statuses_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/statuses/f33a3bad448b646814d1b773e8cd93ebaeadb691","head":{"label":"leapfrogtechnology:VY-AUTH-37","ref":"VY-AUTH-37","sha":"f33a3bad448b646814d1b773e8cd93ebaeadb691","user":{"login":"leapfrogtechnology","id":3176020,"avatar_url":"https://avatars.githubusercontent.com/u/3176020?v=3","gravatar_id":"","url":"https://api.github.com/users/leapfrogtechnology","html_url":"https://github.com/leapfrogtechnology","followers_url":"https://api.github.com/users/leapfrogtechnology/followers","following_url":"https://api.github.com/users/leapfrogtechnology/following{/other_user}","gists_url":"https://api.github.com/users/leapfrogtechnology/gists{/gist_id}","starred_url":"https://api.github.com/users/leapfrogtechnology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapfrogtechnology/subscriptions","organizations_url":"https://api.github.com/users/leapfrogtechnology/orgs","repos_url":"https://api.github.com/users/leapfrogtechnology/repos","events_url":"https://api.github.com/users/leapfrogtechnology/events{/privacy}","received_events_url":"https://api.github.com/users/leapfrogtechnology/received_events","type":"Organization","site_admin":false},"repo":{"id":50502672,"name":"vyaguta-auth","full_name":"leapfrogtechnology/vyaguta-auth","owner":{"login":"leapfrogtechnology","id":3176020,"avatar_url":"https://avatars.githubusercontent.com/u/3176020?v=3","gravatar_id":"","url":"https://api.github.com/users/leapfrogtechnology","html_url":"https://github.com/leapfrogtechnology","followers_url":"https://api.github.com/users/leapfrogtechnology/followers","following_url":"https://api.github.com/users/leapfrogtechnology/following{/other_user}","gists_url":"https://api.github.com/users/leapfrogtechnology/gists{/gist_id}","starred_url":"https://api.github.com/users/leapfrogtechnology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapfrogtechnology/subscriptions","organizations_url":"https://api.github.com/users/leapfrogtechnology/orgs","repos_url":"https://api.github.com/users/leapfrogtechnology/repos","events_url":"https://api.github.com/users/leapfrogtechnology/events{/privacy}","received_events_url":"https://api.github.com/users/leapfrogtechnology/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leapfrogtechnology/vyaguta-auth","description":"","fork":false,"url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth","forks_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/forks","keys_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/teams","hooks_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/hooks","issue_events_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/issues/events{/number}","events_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/events","assignees_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/assignees{/user}","branches_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/branches{/branch}","tags_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/tags","blobs_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/languages","stargazers_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/stargazers","contributors_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/contributors","subscribers_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/subscribers","subscription_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/subscription","commits_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/contents/{+path}","compare_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/merges","archive_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/downloads","issues_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/issues{/number}","pulls_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/labels{/name}","releases_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/releases{/id}","deployments_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/deployments","created_at":"2016-01-27T11:25:39Z","updated_at":"2016-01-27T13:33:47Z","pushed_at":"2016-05-16T10:50:12Z","git_url":"git://github.com/leapfrogtechnology/vyaguta-auth.git","ssh_url":"git@github.com:leapfrogtechnology/vyaguta-auth.git","clone_url":"https://github.com/leapfrogtechnology/vyaguta-auth.git","svn_url":"https://github.com/leapfrogtechnology/vyaguta-auth","homepage":null,"size":689,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"base":{"label":"leapfrogtechnology:dev","ref":"dev","sha":"607646bffd78f6acb144f35ec4e30c414c4a42c6","user":{"login":"leapfrogtechnology","id":3176020,"avatar_url":"https://avatars.githubusercontent.com/u/3176020?v=3","gravatar_id":"","url":"https://api.github.com/users/leapfrogtechnology","html_url":"https://github.com/leapfrogtechnology","followers_url":"https://api.github.com/users/leapfrogtechnology/followers","following_url":"https://api.github.com/users/leapfrogtechnology/following{/other_user}","gists_url":"https://api.github.com/users/leapfrogtechnology/gists{/gist_id}","starred_url":"https://api.github.com/users/leapfrogtechnology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapfrogtechnology/subscriptions","organizations_url":"https://api.github.com/users/leapfrogtechnology/orgs","repos_url":"https://api.github.com/users/leapfrogtechnology/repos","events_url":"https://api.github.com/users/leapfrogtechnology/events{/privacy}","received_events_url":"https://api.github.com/users/leapfrogtechnology/received_events","type":"Organization","site_admin":false},"repo":{"id":50502672,"name":"vyaguta-auth","full_name":"leapfrogtechnology/vyaguta-auth","owner":{"login":"leapfrogtechnology","id":3176020,"avatar_url":"https://avatars.githubusercontent.com/u/3176020?v=3","gravatar_id":"","url":"https://api.github.com/users/leapfrogtechnology","html_url":"https://github.com/leapfrogtechnology","followers_url":"https://api.github.com/users/leapfrogtechnology/followers","following_url":"https://api.github.com/users/leapfrogtechnology/following{/other_user}","gists_url":"https://api.github.com/users/leapfrogtechnology/gists{/gist_id}","starred_url":"https://api.github.com/users/leapfrogtechnology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapfrogtechnology/subscriptions","organizations_url":"https://api.github.com/users/leapfrogtechnology/orgs","repos_url":"https://api.github.com/users/leapfrogtechnology/repos","events_url":"https://api.github.com/users/leapfrogtechnology/events{/privacy}","received_events_url":"https://api.github.com/users/leapfrogtechnology/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leapfrogtechnology/vyaguta-auth","description":"","fork":false,"url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth","forks_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/forks","keys_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/teams","hooks_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/hooks","issue_events_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/issues/events{/number}","events_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/events","assignees_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/assignees{/user}","branches_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/branches{/branch}","tags_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/tags","blobs_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/languages","stargazers_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/stargazers","contributors_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/contributors","subscribers_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/subscribers","subscription_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/subscription","commits_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/contents/{+path}","compare_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/merges","archive_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/downloads","issues_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/issues{/number}","pulls_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/labels{/name}","releases_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/releases{/id}","deployments_url":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/deployments","created_at":"2016-01-27T11:25:39Z","updated_at":"2016-01-27T13:33:47Z","pushed_at":"2016-05-16T10:50:12Z","git_url":"git://github.com/leapfrogtechnology/vyaguta-auth.git","ssh_url":"git@github.com:leapfrogtechnology/vyaguta-auth.git","clone_url":"https://github.com/leapfrogtechnology/vyaguta-auth.git","svn_url":"https://github.com/leapfrogtechnology/vyaguta-auth","homepage":null,"size":689,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/pulls/38"},"html":{"href":"https://github.com/leapfrogtechnology/vyaguta-auth/pull/38"},"issue":{"href":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/issues/38"},"comments":{"href":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/leapfrogtechnology/vyaguta-auth/statuses/f33a3bad448b646814d1b773e8cd93ebaeadb691"}}}}