{"action":"created","issue":{"url":"https://api.github.com/repos/ikaras/yii2-oauth2-rest-template/issues/8","labels_url":"https://api.github.com/repos/ikaras/yii2-oauth2-rest-template/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/ikaras/yii2-oauth2-rest-template/issues/8/comments","events_url":"https://api.github.com/repos/ikaras/yii2-oauth2-rest-template/issues/8/events","html_url":"https://github.com/ikaras/yii2-oauth2-rest-template/issues/8","id":96002823,"number":8,"title":"get 400 Bad request when request to get token","user":{"login":"mistkafka","id":3391470,"avatar_url":"https://avatars.githubusercontent.com/u/3391470?v=3","gravatar_id":"","url":"https://api.github.com/users/mistkafka","html_url":"https://github.com/mistkafka","followers_url":"https://api.github.com/users/mistkafka/followers","following_url":"https://api.github.com/users/mistkafka/following{/other_user}","gists_url":"https://api.github.com/users/mistkafka/gists{/gist_id}","starred_url":"https://api.github.com/users/mistkafka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistkafka/subscriptions","organizations_url":"https://api.github.com/users/mistkafka/orgs","repos_url":"https://api.github.com/users/mistkafka/repos","events_url":"https://api.github.com/users/mistkafka/events{/privacy}","received_events_url":"https://api.github.com/users/mistkafka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-20T07:25:01Z","updated_at":"2015-07-20T09:40:34Z","closed_at":null,"body":"After config the project. I test request public api point. It works. But when I test request to get token, it got \r\n\r\n````\r\nHTTP/1.1 400 Bad Request\r\nHost: localhost:6666\r\nConnection: close\r\nX-Powered-By: PHP/5.6.8\r\nContent-Type: application/json; charset=UTF-8\r\n\r\n{\"name\":\"Bad Request\",\"message\":\"The grant type was not specified in the request\",\"code\":0,\"status\":400,\"type\":\"yii\\\\web\\\\HttpException\"}~/Code/PHP/yii2-oauth2-rest\r\n[15:21:57]--->\r\n\r\n````"},"comment":{"url":"https://api.github.com/repos/ikaras/yii2-oauth2-rest-template/issues/comments/122826944","html_url":"https://github.com/ikaras/yii2-oauth2-rest-template/issues/8#issuecomment-122826944","issue_url":"https://api.github.com/repos/ikaras/yii2-oauth2-rest-template/issues/8","id":122826944,"user":{"login":"ikaras","id":4718191,"avatar_url":"https://avatars.githubusercontent.com/u/4718191?v=3","gravatar_id":"","url":"https://api.github.com/users/ikaras","html_url":"https://github.com/ikaras","followers_url":"https://api.github.com/users/ikaras/followers","following_url":"https://api.github.com/users/ikaras/following{/other_user}","gists_url":"https://api.github.com/users/ikaras/gists{/gist_id}","starred_url":"https://api.github.com/users/ikaras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikaras/subscriptions","organizations_url":"https://api.github.com/users/ikaras/orgs","repos_url":"https://api.github.com/users/ikaras/repos","events_url":"https://api.github.com/users/ikaras/events{/privacy}","received_events_url":"https://api.github.com/users/ikaras/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T09:40:34Z","updated_at":"2015-07-20T09:40:34Z","body":"Hi.\r\nPlease, give me your request (post) parameters used to get access token. Seems you forgot about `\"grant_type\":\"password\"`"}}