unsupported_grant_type "password"

Created by: roshangautam

While using /oauth/token endpoint for Resource Owner Password Credentials as described here

https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/oauth2.md

i am getting an unsupported_grant_type error in the response.

Can anyone please point me to the right direction if am missing something ?