How can I authenticate by rest api oauth2

Formatters were not ok, I defined formatters by this post and it is working-

However now i am getting 500 errors

w2 w3

I think the problem is how to pass grant_type etc in data. I checked with following variations-
grant_type=password
username=admin
password=admin

or body =grant_type=password&username=admin&password=admin

or Form data_type is not available in AC api action as in SC api action (where it is working)
regards