【发布时间】:2015-08-31 05:20:18
【问题描述】:
您好,我有一个用于 OAuth2 的 spring 配置 xml 文件。 我已将其配置为需要名为 curl 的参数和效果来请求令牌。它发出如下请求:
curl -X POST -v http://localhost:8080/oauth/token -d "grant_type=password&client_id=test&client_secret=test&username=user1&password=password1"
我希望如果提示用户名和密码错误的令牌,它会生成一个json自定义错误。 我该怎么办?
谢谢
【问题讨论】:
标签: spring spring-mvc oauth oauth-2.0 spring-security-oauth2