【发布时间】:2020-03-31 09:16:34
【问题描述】:
我正在 SpringBoot RestFul API 中实现 Oauth2。一切正常,除非我使用 错误密码 得到错误响应:
状态:400Bad Request
{
"error": "invalid_grant",
"error_description": "Bad credentials"
}
但我的例外是这样的:
状态:401 未授权
{
"error": "unauthorized",
"error_description": "Invalid username/password combination"
}
【问题讨论】:
标签: java spring rest spring-boot oauth-2.0