{"action":"created","comment":{"url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/pulls/comments/166647881","pull_request_review_id":94744153,"id":166647881,"diff_hunk":"@@ -0,0 +1,8 @@\n+package org.aerogear.auth;\n+\n+/**\n+ * Keycloak role types\n+ */\n+public enum RoleType {\n+    REALM, CLIENT","path":"auth/src/main/java/org/aerogear/auth/RoleType.java","position":7,"original_position":7,"commit_id":"a53681811121bcac5b1840265751dda5a0750675","original_commit_id":"a53681811121bcac5b1840265751dda5a0750675","user":{"login":"matzew","id":157646,"avatar_url":"https://avatars3.githubusercontent.com/u/157646?v=4","gravatar_id":"","url":"https://api.github.com/users/matzew","html_url":"https://github.com/matzew","followers_url":"https://api.github.com/users/matzew/followers","following_url":"https://api.github.com/users/matzew/following{/other_user}","gists_url":"https://api.github.com/users/matzew/gists{/gist_id}","starred_url":"https://api.github.com/users/matzew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matzew/subscriptions","organizations_url":"https://api.github.com/users/matzew/orgs","repos_url":"https://api.github.com/users/matzew/repos","events_url":"https://api.github.com/users/matzew/events{/privacy}","received_events_url":"https://api.github.com/users/matzew/received_events","type":"User","site_admin":false},"body":"perhaps do a ctor ? \r\n\r\nhttps://github.com/aerogear/aerogear-unifiedpush-server/blob/f6fe1622c595a40f54b6eb1c4f5a643e2e133f9a/service/src/main/java/org/jboss/aerogear/unifiedpush/service/impl/health/Status.java#L24-L27","created_at":"2018-02-07T15:14:21Z","updated_at":"2018-02-07T15:14:21Z","html_url":"https://github.com/aerogear/aerogear-android-sdk/pull/15#discussion_r166647881","pull_request_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/pulls/15","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/aerogear/aerogear-android-sdk/pulls/comments/166647881"},"html":{"href":"https://github.com/aerogear/aerogear-android-sdk/pull/15#discussion_r166647881"},"pull_request":{"href":"https://api.github.com/repos/aerogear/aerogear-android-sdk/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/pulls/15","id":164581188,"html_url":"https://github.com/aerogear/aerogear-android-sdk/pull/15","diff_url":"https://github.com/aerogear/aerogear-android-sdk/pull/15.diff","patch_url":"https://github.com/aerogear/aerogear-android-sdk/pull/15.patch","issue_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/issues/15","number":15,"state":"open","locked":false,"title":"[WIP] - implement user get roles and has roles functionality","user":{"login":"rachael-oregan","id":17702978,"avatar_url":"https://avatars2.githubusercontent.com/u/17702978?v=4","gravatar_id":"","url":"https://api.github.com/users/rachael-oregan","html_url":"https://github.com/rachael-oregan","followers_url":"https://api.github.com/users/rachael-oregan/followers","following_url":"https://api.github.com/users/rachael-oregan/following{/other_user}","gists_url":"https://api.github.com/users/rachael-oregan/gists{/gist_id}","starred_url":"https://api.github.com/users/rachael-oregan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachael-oregan/subscriptions","organizations_url":"https://api.github.com/users/rachael-oregan/orgs","repos_url":"https://api.github.com/users/rachael-oregan/repos","events_url":"https://api.github.com/users/rachael-oregan/events{/privacy}","received_events_url":"https://api.github.com/users/rachael-oregan/received_events","type":"User","site_admin":false},"body":"## Motivation\r\n\r\nJIRA: https://issues.jboss.org/browse/AGDROID-684\r\n\r\n## Description\r\n\r\nWhen a user is created an authenticator is passed to the User Object.  Inside this authenticator Object (`OIDCAuthCodeImpl`) is where the users data/identity is decoded from their credentials.  This decoded data is then used to `build` the user Object.\r\n\r\nThe `getRoles` function for the User should return a collection of Roles.\r\n\r\nNote: `hasRole` function implementation has been included in this PR too.  See this [ticket](https://issues.jboss.org/browse/AGDROID-685) for more info.\r\n\r\n## Progress\r\n\r\n- [x] Implemented get user roles functionality\r\n- [x] Unit Testing\r\n- [x] JavaDocs\r\n","created_at":"2018-01-23T13:51:54Z","updated_at":"2018-02-07T15:14:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0b6b671757e1f15852bb96d0d9bb3aff23663bd","assignee":null,"assignees":[],"requested_reviewers":[{"login":"TommyJ1994","id":5624453,"avatar_url":"https://avatars2.githubusercontent.com/u/5624453?v=4","gravatar_id":"","url":"https://api.github.com/users/TommyJ1994","html_url":"https://github.com/TommyJ1994","followers_url":"https://api.github.com/users/TommyJ1994/followers","following_url":"https://api.github.com/users/TommyJ1994/following{/other_user}","gists_url":"https://api.github.com/users/TommyJ1994/gists{/gist_id}","starred_url":"https://api.github.com/users/TommyJ1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TommyJ1994/subscriptions","organizations_url":"https://api.github.com/users/TommyJ1994/orgs","repos_url":"https://api.github.com/users/TommyJ1994/repos","events_url":"https://api.github.com/users/TommyJ1994/events{/privacy}","received_events_url":"https://api.github.com/users/TommyJ1994/received_events","type":"User","site_admin":false}],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/pulls/15/commits","review_comments_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/pulls/15/comments","review_comment_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/issues/15/comments","statuses_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/statuses/a53681811121bcac5b1840265751dda5a0750675","head":{"label":"rachael-oregan:AGDROID-684","ref":"AGDROID-684","sha":"a53681811121bcac5b1840265751dda5a0750675","user":{"login":"rachael-oregan","id":17702978,"avatar_url":"https://avatars2.githubusercontent.com/u/17702978?v=4","gravatar_id":"","url":"https://api.github.com/users/rachael-oregan","html_url":"https://github.com/rachael-oregan","followers_url":"https://api.github.com/users/rachael-oregan/followers","following_url":"https://api.github.com/users/rachael-oregan/following{/other_user}","gists_url":"https://api.github.com/users/rachael-oregan/gists{/gist_id}","starred_url":"https://api.github.com/users/rachael-oregan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachael-oregan/subscriptions","organizations_url":"https://api.github.com/users/rachael-oregan/orgs","repos_url":"https://api.github.com/users/rachael-oregan/repos","events_url":"https://api.github.com/users/rachael-oregan/events{/privacy}","received_events_url":"https://api.github.com/users/rachael-oregan/received_events","type":"User","site_admin":false},"repo":{"id":118615500,"name":"aerogear-android-sdk","full_name":"rachael-oregan/aerogear-android-sdk","owner":{"login":"rachael-oregan","id":17702978,"avatar_url":"https://avatars2.githubusercontent.com/u/17702978?v=4","gravatar_id":"","url":"https://api.github.com/users/rachael-oregan","html_url":"https://github.com/rachael-oregan","followers_url":"https://api.github.com/users/rachael-oregan/followers","following_url":"https://api.github.com/users/rachael-oregan/following{/other_user}","gists_url":"https://api.github.com/users/rachael-oregan/gists{/gist_id}","starred_url":"https://api.github.com/users/rachael-oregan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachael-oregan/subscriptions","organizations_url":"https://api.github.com/users/rachael-oregan/orgs","repos_url":"https://api.github.com/users/rachael-oregan/repos","events_url":"https://api.github.com/users/rachael-oregan/events{/privacy}","received_events_url":"https://api.github.com/users/rachael-oregan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rachael-oregan/aerogear-android-sdk","description":"Mobile.Next() Android SDK: Work in progress","fork":true,"url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk","forks_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/forks","keys_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/teams","hooks_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/hooks","issue_events_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/events","assignees_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/tags","blobs_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/languages","stargazers_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/stargazers","contributors_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/contributors","subscribers_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/subscribers","subscription_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/subscription","commits_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/merges","archive_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/downloads","issues_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/labels{/name}","releases_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/rachael-oregan/aerogear-android-sdk/deployments","created_at":"2018-01-23T13:40:13Z","updated_at":"2018-01-23T13:40:14Z","pushed_at":"2018-02-06T14:48:53Z","git_url":"git://github.com/rachael-oregan/aerogear-android-sdk.git","ssh_url":"git@github.com:rachael-oregan/aerogear-android-sdk.git","clone_url":"https://github.com/rachael-oregan/aerogear-android-sdk.git","svn_url":"https://github.com/rachael-oregan/aerogear-android-sdk","homepage":"","size":167,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aerogear:master","ref":"master","sha":"f262924b3db7172149bbbb5f8fd92029ddb5a83c","user":{"login":"aerogear","id":954205,"avatar_url":"https://avatars1.githubusercontent.com/u/954205?v=4","gravatar_id":"","url":"https://api.github.com/users/aerogear","html_url":"https://github.com/aerogear","followers_url":"https://api.github.com/users/aerogear/followers","following_url":"https://api.github.com/users/aerogear/following{/other_user}","gists_url":"https://api.github.com/users/aerogear/gists{/gist_id}","starred_url":"https://api.github.com/users/aerogear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aerogear/subscriptions","organizations_url":"https://api.github.com/users/aerogear/orgs","repos_url":"https://api.github.com/users/aerogear/repos","events_url":"https://api.github.com/users/aerogear/events{/privacy}","received_events_url":"https://api.github.com/users/aerogear/received_events","type":"Organization","site_admin":false},"repo":{"id":116160086,"name":"aerogear-android-sdk","full_name":"aerogear/aerogear-android-sdk","owner":{"login":"aerogear","id":954205,"avatar_url":"https://avatars1.githubusercontent.com/u/954205?v=4","gravatar_id":"","url":"https://api.github.com/users/aerogear","html_url":"https://github.com/aerogear","followers_url":"https://api.github.com/users/aerogear/followers","following_url":"https://api.github.com/users/aerogear/following{/other_user}","gists_url":"https://api.github.com/users/aerogear/gists{/gist_id}","starred_url":"https://api.github.com/users/aerogear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aerogear/subscriptions","organizations_url":"https://api.github.com/users/aerogear/orgs","repos_url":"https://api.github.com/users/aerogear/repos","events_url":"https://api.github.com/users/aerogear/events{/privacy}","received_events_url":"https://api.github.com/users/aerogear/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aerogear/aerogear-android-sdk","description":"Mobile.Next() Android SDK: Work in progress","fork":false,"url":"https://api.github.com/repos/aerogear/aerogear-android-sdk","forks_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/forks","keys_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/teams","hooks_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/hooks","issue_events_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/events","assignees_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/tags","blobs_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/languages","stargazers_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/stargazers","contributors_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/contributors","subscribers_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/subscribers","subscription_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/subscription","commits_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/merges","archive_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/downloads","issues_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/labels{/name}","releases_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/aerogear/aerogear-android-sdk/deployments","created_at":"2018-01-03T16:45:59Z","updated_at":"2018-01-18T12:25:25Z","pushed_at":"2018-02-07T15:13:12Z","git_url":"git://github.com/aerogear/aerogear-android-sdk.git","ssh_url":"git@github.com:aerogear/aerogear-android-sdk.git","clone_url":"https://github.com/aerogear/aerogear-android-sdk.git","svn_url":"https://github.com/aerogear/aerogear-android-sdk","homepage":"","size":155,"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":13,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":13,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aerogear/aerogear-android-sdk/pulls/15"},"html":{"href":"https://github.com/aerogear/aerogear-android-sdk/pull/15"},"issue":{"href":"https://api.github.com/repos/aerogear/aerogear-android-sdk/issues/15"},"comments":{"href":"https://api.github.com/repos/aerogear/aerogear-android-sdk/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/aerogear/aerogear-android-sdk/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/aerogear/aerogear-android-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aerogear/aerogear-android-sdk/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/aerogear/aerogear-android-sdk/statuses/a53681811121bcac5b1840265751dda5a0750675"}},"author_association":"NONE"}}
{"actor":{"display_login":"matzew"}}