我从Spring OAuth2开始.我想以app/json格式将用户名和密码发送到POST正文中的/ oauth/token端点.
curl -X POST -H "Authorization: Basic YWNtZTphY21lc2VjcmV0" -H "Content-Type: application/json" -d '{
"username": "user",
"password": "password",
"grant_type": "password"
}' "http://localhost:9999/api/oauth/token"
Run Code Online (Sandbox Code Playgroud)
那可能吗?
你能给我一个建议吗?