OAuth 2 Resource Owner Password Credentials grant in ADFS - nordvall/TokenClient GitHub Wiki

This grant type is not supported in ADFS.

Example request:

POST /adfs/oauth2/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: xxx.yyy.zzz
Content-Length: 93

grant_type=password&scope=http%3A%2F%2Fmysite.com&username=abc&password=xyz

Response:

HTTP/1.1 400 Bad Request
Content-Type: application/json;charset=UTF-8

{"error":"unsupported_grant_type",
"error_description":"MSIS9611: The authorization server does not support the requested grant_type. The authorization server only supports 'authorization_code' or 'refresh_token' as the grant type."}

For more information, see OAuth 2 in ADFS.