{"action":"opened","issue":{"url":"https://api.github.com/repos/GluuFederation/oxAuth/issues/530","repository_url":"https://api.github.com/repos/GluuFederation/oxAuth","labels_url":"https://api.github.com/repos/GluuFederation/oxAuth/issues/530/labels{/name}","comments_url":"https://api.github.com/repos/GluuFederation/oxAuth/issues/530/comments","events_url":"https://api.github.com/repos/GluuFederation/oxAuth/issues/530/events","html_url":"https://github.com/GluuFederation/oxAuth/issues/530","id":227498292,"number":530,"title":"refresh_token must returns a jwt token","user":{"login":"jbucar","id":22665933,"avatar_url":"https://avatars1.githubusercontent.com/u/22665933?v=3","gravatar_id":"","url":"https://api.github.com/users/jbucar","html_url":"https://github.com/jbucar","followers_url":"https://api.github.com/users/jbucar/followers","following_url":"https://api.github.com/users/jbucar/following{/other_user}","gists_url":"https://api.github.com/users/jbucar/gists{/gist_id}","starred_url":"https://api.github.com/users/jbucar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbucar/subscriptions","organizations_url":"https://api.github.com/users/jbucar/orgs","repos_url":"https://api.github.com/users/jbucar/repos","events_url":"https://api.github.com/users/jbucar/events{/privacy}","received_events_url":"https://api.github.com/users/jbucar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-09T21:07:21Z","updated_at":"2017-05-09T21:07:21Z","closed_at":null,"body":"when try to refresh a jwt token with a valid refresh_token, it must return id_token attribute.\r\n\r\nhow test:\r\nRESULT=`curl -q -s -X POST -H \"Authorization: Basic ${AUTH}\" -d \"refresh_token=${REFRESH_TOKEN}&grant_type=refresh_token\" ${BASE_URL}`\r\n\r\nIn the source code, \r\nServer/src/main/java/org/xdi/oxauth/token/ws/rs/TokenRestWebServiceImpl.java\r\nwe need add something like it:\r\n    IdToken idToken = null;\r\n                        if (authorizationCodeGrant.getScopes().contains(\"openid\")) {\r\n                            String nonce = authorizationCodeGrant.getNonce();\r\n                            boolean includeIdTokenClaims = Boolean.TRUE.equals(\r\n                            \t\tappConfiguration.getLegacyIdTokenClaims());\r\n                            idToken = authorizationCodeGrant.createIdToken(\r\n                                    nonce, null, accToken, authorizationCodeGrant, includeIdTokenClaims);\r\n                        }"}}
{"actor":{"display_login":"jbucar"}}