Spring Oauth2.0 Fehlender Grant-Typ
Ich benutze Spring Oauth 2.O.
Wenn ich eine Anfrage als Formulardaten übergebe, funktioniert das gut, aber wenn ich versuche, Daten in @ zu übergebapplication/json
Format gibt es mir Fehler fehlenden Grant-Typ.
Anfrag
http://localhost:8080/oauth/token
{"username":"parths","password":"123456","grant_type":"password"}
Error bekomme ich.
{
"status": "0",
"message": "Missing grant type"
}
Bitte führen.