{"action":"created","issue":{"url":"https://api.github.com/repos/keycloak/keycloak/issues/1238","labels_url":"https://api.github.com/repos/keycloak/keycloak/issues/1238/labels{/name}","comments_url":"https://api.github.com/repos/keycloak/keycloak/issues/1238/comments","events_url":"https://api.github.com/repos/keycloak/keycloak/issues/1238/events","html_url":"https://github.com/keycloak/keycloak/pull/1238","id":74651223,"number":1238,"title":"Added support for GrantedAuthoritiesMapper in KeycloakAuthenticationProvider","user":{"login":"raehalme","id":3288306,"avatar_url":"https://avatars.githubusercontent.com/u/3288306?v=3","gravatar_id":"","url":"https://api.github.com/users/raehalme","html_url":"https://github.com/raehalme","followers_url":"https://api.github.com/users/raehalme/followers","following_url":"https://api.github.com/users/raehalme/following{/other_user}","gists_url":"https://api.github.com/users/raehalme/gists{/gist_id}","starred_url":"https://api.github.com/users/raehalme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raehalme/subscriptions","organizations_url":"https://api.github.com/users/raehalme/orgs","repos_url":"https://api.github.com/users/raehalme/repos","events_url":"https://api.github.com/users/raehalme/events{/privacy}","received_events_url":"https://api.github.com/users/raehalme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-09T11:16:49Z","updated_at":"2015-05-12T06:01:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/keycloak/keycloak/pulls/1238","html_url":"https://github.com/keycloak/keycloak/pull/1238","diff_url":"https://github.com/keycloak/keycloak/pull/1238.diff","patch_url":"https://github.com/keycloak/keycloak/pull/1238.patch"},"body":"Regarding issue KEYCLOAK-1294 I have added support for converting roles from the format they are received from Keycloak to the format required by the application utilizing Spring Security.\r\n\r\nI wanted to use the GrantedAuthoritiesMapper interface that was already available in Spring Security. For many users the SimpleAuthorityMapper which is also provided by Spring Security may be a sufficient implementation. \r\n\r\nThe side effect, however, is that GrantedAuthoritiesMapper processes GrantedAuthority objects directly which may result in the authority type being changed from KeycloakRole to something else. Do you think this is a problem? "},"comment":{"url":"https://api.github.com/repos/keycloak/keycloak/issues/comments/101144058","html_url":"https://github.com/keycloak/keycloak/pull/1238#issuecomment-101144058","issue_url":"https://api.github.com/repos/keycloak/keycloak/issues/1238","id":101144058,"user":{"login":"stianst","id":2271511,"avatar_url":"https://avatars.githubusercontent.com/u/2271511?v=3","gravatar_id":"","url":"https://api.github.com/users/stianst","html_url":"https://github.com/stianst","followers_url":"https://api.github.com/users/stianst/followers","following_url":"https://api.github.com/users/stianst/following{/other_user}","gists_url":"https://api.github.com/users/stianst/gists{/gist_id}","starred_url":"https://api.github.com/users/stianst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stianst/subscriptions","organizations_url":"https://api.github.com/users/stianst/orgs","repos_url":"https://api.github.com/users/stianst/repos","events_url":"https://api.github.com/users/stianst/events{/privacy}","received_events_url":"https://api.github.com/users/stianst/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T06:01:49Z","updated_at":"2015-05-12T06:01:49Z","body":"@foo4u do you want us to merge this PR?"}}