简体   繁体   English

使用CloudFoundry作为客户端的Spring OAuth2 Provider客户端身份验证401未授权错误

[英]Spring OAuth2 Provider Client Authentication 401 not authorized error using CloudFoundry as client

This question is primarily for the CloudFoundry developers. 这个问题主要是针对CloudFoundry开发人员的。 Has something changed that would make a client application using spring social unable to use basic client authentication to communicate with my core application hosting an oauth2 provider? 是否进行了某些更改,使使用spring social的客户端应用程序无法使用基本客户端身份验证与托管oauth2提供程序的核心应用程序进行通信? When I run the client application on a tomcat server everything works. 当我在tomcat服务器上运行客户端应用程序时,一切正常。 It also worked on a cloudfoundry microinstance about 2 weeks ago. 大约两周前,它还在一个cloudfoundry微型实例上工作。 Now I get a 401 unauthorized error making a call to the service at "../oath/token" on my core application. 现在,我在我的核心应用程序的“ ../oath/token”处调用该服务时收到401未经授权的错误。 To see what I am referring to, my application is http://www.metroseattlegamers.com If you click the "Games" link at the top it brings you to a separate application. 要查看我指的是什么,我的应用程序是http://www.metroseattlegamers.com。如果单击顶部的“游戏”链接,它将带您到一个单独的应用程序。 If you sign in using the application at http://gamerepository.metroseattlegamers.com , the "sign in with metroseattlegamers account" button uses custom spring social code to communicate to my spring oauth2 provider code at http://www.metroseattlegamers.com . 如果您使用http://gamerepository.metroseattlegamers.com上的应用程序登录,则“使用metroseattlegamers帐户登录”按钮将使用自定义的Spring社交代码与http://www.metroseattlegamers.com上的我的spring oauth2提供者代码进行通信 That all works fine because it is running on two separate tomcat servers on different machines. 一切正常,因为它在不同计算机上的两个单独的tomcat服务器上运行。 However, I tested and wrote everything using cloudfoundry micro instances to run client apps. 但是,我使用cloudfoundry微型实例测试并编写了所有内容以运行客户端应用程序。 As I said, it was working about a week or two weeks ago. 正如我所说,它大约在一两个星期前就可以正常工作了。 Now I get a 401 error when I run the client on a cloudfoundry instance. 现在,当我在cloudfoundry实例上运行客户端时,出现401错误。 Everything still works great when I run two separate tomcat servers on separate machines. 当我在单独的机器上运行两个单独的tomcat服务器时,一切仍然运行良好。 Rather than include a bunch of code, I am just curious if anything has changed with how cloudfoundry microinstances work in the last week or two that may have caused this problem. 而不是包含一堆代码,我只是好奇在过去一两个星期内,cloudfoundry微观实例的工作方式是否发生了任何变化,这可能导致了此问题。

No as far as I know. 据我所知没有。 Would it be possible for you to file a ticket at the official support page: http://support.cloudfoundry.com . 您是否可以在官方支持页面http://support.cloudfoundry.com上提交票证。 There you can get a private agent to assist and maybe share the implementation of your app to further debug. 在那里,您可以获得私人代理的协助,甚至可以共享您的应用程序的实现以进行进一步调试。 You will need to sign in by the account you registered on www.cloudfoundry.com. 您将需要使用您在www.cloudfoundry.com上注册的帐户登录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM