{"action":"opened","issue":{"url":"https://api.github.com/repos/FrontierPsychiatrist/spring-oauth-example/issues/5","labels_url":"https://api.github.com/repos/FrontierPsychiatrist/spring-oauth-example/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/FrontierPsychiatrist/spring-oauth-example/issues/5/comments","events_url":"https://api.github.com/repos/FrontierPsychiatrist/spring-oauth-example/issues/5/events","html_url":"https://github.com/FrontierPsychiatrist/spring-oauth-example/issues/5","id":112592818,"number":5,"title":"Not getting refresh_token and \"Unsupported grant type: password\"","user":{"login":"thiagolocatelli","id":1017031,"avatar_url":"https://avatars.githubusercontent.com/u/1017031?v=3","gravatar_id":"","url":"https://api.github.com/users/thiagolocatelli","html_url":"https://github.com/thiagolocatelli","followers_url":"https://api.github.com/users/thiagolocatelli/followers","following_url":"https://api.github.com/users/thiagolocatelli/following{/other_user}","gists_url":"https://api.github.com/users/thiagolocatelli/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagolocatelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagolocatelli/subscriptions","organizations_url":"https://api.github.com/users/thiagolocatelli/orgs","repos_url":"https://api.github.com/users/thiagolocatelli/repos","events_url":"https://api.github.com/users/thiagolocatelli/events{/privacy}","received_events_url":"https://api.github.com/users/thiagolocatelli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-21T13:49:54Z","updated_at":"2015-10-21T13:49:54Z","closed_at":null,"body":"Hi, two things.\r\n\r\nI am executing the following curl command:\r\n\r\ncurl -X POST -u curl-client:client-secret http://localhost:8081/oauth/token -H \"Accept: application/json\" -d \"password=user&username=user&grant_type=client_credentials&scope=read%20write&client_secret=client-secret&client_id=curl-client\"\r\n\r\nand I am getting the following response without the refresh_token\r\n\r\n{\"access_token\":\"c42ee640-44d1-4217-a608-6eaeb1ce9f14\",\"token_type\":\"bearer\",\"expires_in\":4186,\"scope\":\"read write\"}\r\n\r\nI have changed the client in the admin UI to support password, refresh_token and client_credentials, but the refresh token is not being retrieve. Also, it only works with grant_type=client_credentials, grant_type=password does not work.\r\n\r\nAny ideas?"}}