带有UAA服务器的OAuth客户端网络应用-error =“ access_denied”,error_description =“请求访问令牌时出错。”

时间:2018-07-29 20:50:54

标签: spring spring-security oauth oauth-2.0 cloudfoundry-uaa

我正在此https://github.com/cfid/uaa-samples/tree/master/basic-java-client上运行OAuth客户端 当我尝试访问该应用程序时,它会将我重定向到UAA登录页面。输入凭据后,出现以下错误:

error =“ access_denied”,error_description =“请求访问令牌时出错。”

查看我的客户端Web应用程序上的日志,我看到以下内容:

-AuthorizationCodeAccessTokenProvider:编码和发送形式:{grant_type = [authorization_code],代码= [S9uXYsvgn4],redirect_uri = [http://localhost:8081/sampleapp/login]} [2018-07-29 15:23:38.759]样品/应用程序-???? [http-nio-8081-exec-4] ....警告- -RestTemplate:“ http://localhost:8080/uaa/oauth/token”结果的POST请求 ed in 401(null);调用错误处理程序

我不确定是什么问题。看起来在对oauth / token的调用中,它还应该发送client_id和client_secret吗?但是从上面的日志来看,它似乎没有发送它们。那是问题吗?如果是,为什么不发送这些参数?有什么想法吗?

0 个答案:

没有答案
相关问题