{"action":"created","issue":{"url":"https://api.github.com/repos/bluesliverx/grails-spring-security-oauth2-provider/issues/86","labels_url":"https://api.github.com/repos/bluesliverx/grails-spring-security-oauth2-provider/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/bluesliverx/grails-spring-security-oauth2-provider/issues/86/comments","events_url":"https://api.github.com/repos/bluesliverx/grails-spring-security-oauth2-provider/issues/86/events","html_url":"https://github.com/bluesliverx/grails-spring-security-oauth2-provider/issues/86","id":70704108,"number":86,"title":"customize OAuth response","user":{"login":"domurtag","id":1050770,"avatar_url":"https://avatars.githubusercontent.com/u/1050770?v=3","gravatar_id":"","url":"https://api.github.com/users/domurtag","html_url":"https://github.com/domurtag","followers_url":"https://api.github.com/users/domurtag/followers","following_url":"https://api.github.com/users/domurtag/following{/other_user}","gists_url":"https://api.github.com/users/domurtag/gists{/gist_id}","starred_url":"https://api.github.com/users/domurtag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domurtag/subscriptions","organizations_url":"https://api.github.com/users/domurtag/orgs","repos_url":"https://api.github.com/users/domurtag/repos","events_url":"https://api.github.com/users/domurtag/events{/privacy}","received_events_url":"https://api.github.com/users/domurtag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-24T14:26:35Z","updated_at":"2015-04-27T15:15:24Z","closed_at":null,"body":"The response to a successful authentication (for the authorization_code grant type) is something like:\r\n\r\n````json\r\n{\"access_token\": \"d179bf70-aa40-4df9-a3e1-440e835c273a\", \r\n\"expires_in\": \"43199\", \r\n\"refresh_token\": \"879e7bd0-5e0f-48a9-b64d-f61d5665bf4e\", \r\n\"scope\": \"read\", \r\n\"token_type\": \"bearer\"}\r\n````\r\n\r\nIs there a way to add additional properties to this response, e.g. the user's name or email address?"},"comment":{"url":"https://api.github.com/repos/bluesliverx/grails-spring-security-oauth2-provider/issues/comments/96697605","html_url":"https://github.com/bluesliverx/grails-spring-security-oauth2-provider/issues/86#issuecomment-96697605","issue_url":"https://api.github.com/repos/bluesliverx/grails-spring-security-oauth2-provider/issues/86","id":96697605,"user":{"login":"bluesliverx","id":391239,"avatar_url":"https://avatars.githubusercontent.com/u/391239?v=3","gravatar_id":"","url":"https://api.github.com/users/bluesliverx","html_url":"https://github.com/bluesliverx","followers_url":"https://api.github.com/users/bluesliverx/followers","following_url":"https://api.github.com/users/bluesliverx/following{/other_user}","gists_url":"https://api.github.com/users/bluesliverx/gists{/gist_id}","starred_url":"https://api.github.com/users/bluesliverx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluesliverx/subscriptions","organizations_url":"https://api.github.com/users/bluesliverx/orgs","repos_url":"https://api.github.com/users/bluesliverx/repos","events_url":"https://api.github.com/users/bluesliverx/events{/privacy}","received_events_url":"https://api.github.com/users/bluesliverx/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T15:15:24Z","updated_at":"2015-04-27T15:15:24Z","body":"Have you verified that your version of the token store service is actually getting used?  My guess is that it's not.\r\n\r\nYou may need to be more explicit depending on your grails version as they do namespacing in plugins differently.  I would rename the class to \"MyGormTokenStoreService\" and then put the following in `resources.groovy`:\r\n\r\n```\r\nspringConfig.addAlias 'tokenStore', 'myGormTokenStoreService'\r\n```\r\n\r\nThen you could debug or put some printlines somewhere in your code that prints the class name of the 'tokenStore' bean:\r\n\r\n```\r\ndef tokenStore\r\ndef list() {\r\n    println tokenStore.class.name\r\n}\r\n```\r\n\r\nJust to verify that you are getting the correct bean registered as the token store."}}