{"action":"created","issue":{"url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/597","labels_url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/597/labels{/name}","comments_url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/597/comments","events_url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/597/events","html_url":"https://github.com/lucadegasperi/oauth2-server-laravel/issues/597","id":116782531,"number":597,"title":"Is this the right grant type?","user":{"login":"movostudios","id":2419418,"avatar_url":"https://avatars.githubusercontent.com/u/2419418?v=3","gravatar_id":"","url":"https://api.github.com/users/movostudios","html_url":"https://github.com/movostudios","followers_url":"https://api.github.com/users/movostudios/followers","following_url":"https://api.github.com/users/movostudios/following{/other_user}","gists_url":"https://api.github.com/users/movostudios/gists{/gist_id}","starred_url":"https://api.github.com/users/movostudios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/movostudios/subscriptions","organizations_url":"https://api.github.com/users/movostudios/orgs","repos_url":"https://api.github.com/users/movostudios/repos","events_url":"https://api.github.com/users/movostudios/events{/privacy}","received_events_url":"https://api.github.com/users/movostudios/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/labels/support","name":"support","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-13T14:54:22Z","updated_at":"2015-11-19T07:47:33Z","closed_at":null,"body":"They, thanks for the awesome package. I've not set up OAuth before, so still getting my head around it.\r\n\r\nI'm building a SPA and want a user to enter their username/email and password. Then to authenticate which generates a token to gain access to the API/app.\r\n\r\nI've set up a 'Password' grant at the moment. I am getting a token back, however, I am needing to send OAuth:\r\n\r\n• client_id\r\n• client_secret\r\n• username\r\n• password\r\n\r\nAm I right in thinking that I need to query the the DB prior posting to `/oauth/access_token` to get the `client_id` and `client_secret` based on the username and pw? This sounds wrong to me. I think I have got the wrong end of the stick here. \r\n\r\nThanks and sorry for the simple support question."},"comment":{"url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/comments/157978822","html_url":"https://github.com/lucadegasperi/oauth2-server-laravel/issues/597#issuecomment-157978822","issue_url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/597","id":157978822,"user":{"login":"vinkla","id":499192,"avatar_url":"https://avatars.githubusercontent.com/u/499192?v=3","gravatar_id":"","url":"https://api.github.com/users/vinkla","html_url":"https://github.com/vinkla","followers_url":"https://api.github.com/users/vinkla/followers","following_url":"https://api.github.com/users/vinkla/following{/other_user}","gists_url":"https://api.github.com/users/vinkla/gists{/gist_id}","starred_url":"https://api.github.com/users/vinkla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinkla/subscriptions","organizations_url":"https://api.github.com/users/vinkla/orgs","repos_url":"https://api.github.com/users/vinkla/repos","events_url":"https://api.github.com/users/vinkla/events{/privacy}","received_events_url":"https://api.github.com/users/vinkla/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T07:47:33Z","updated_at":"2015-11-19T07:47:33Z","body":"Thanks for helping out @mickeyschwab!\r\n\r\n@movostudios can we consider this issue fixed?"}}