java - Spring Boot OpenId Connect 和 Gluu 的配置问题

标签 java spring spring-boot oauth-2.0 gluu

我正在尝试让 POC 与 Gluu 一起工作。我按照 https://spring.io/guides/tutorials/spring-boot-oauth2/ 上的教程进行操作并让它与 Facebook 一起工作。然后我尝试将其移至 gluu。通过 stackoverflow 上的另一篇文章解决了几个问题,但现在我收到此错误。
{ "error": "invalid_request_redirect_uri", "error_description": "The redirect_uri in the Authorization Request does not match any of the Client's pre-registered redirect_uris.", "state": "RexEdf" }

application.yml: security: oauth2: client: clientId: "<my client id>" clientSecret: <my client secret> accessTokenUri: https://<gluu server>/oxauth/seam/resource/restv1/oxauth/token userAuthorizationUri: https://<gluu server>/oxauth/seam/resource/restv1/oxauth/authorize tokenName: oauth_token authenticationScheme: form clientAuthenticationScheme: form scope: openid resource: userInfoUri: https://<gluu server>/oxauth/seam/resource/restv1/oxauth/authorize

我在 gluu 和启动客户端上尝试了很多选项试图解决这个问题,但似乎没有任何效果。我假设这是一个简单的修复,但我无法找到任何有用的信息。

最佳答案

我让一位同事和我一起查看了它,我们发现了一个错误输入的重定向网址。现在我要解决下一个问题了。

关于java - Spring Boot OpenId Connect 和 Gluu 的配置问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43984178/

相关文章:

java - JMS/websocket 消息中缺少正文

java - 除了 "dev"之外,Spring redirectAttributes 无法在其他配置文件中工作

java - 如何使用 Hibernate Spring 检查表中已存在的值

java - 如何将每个用户链接到 Firebase 中的数据?

java - 使用 import 后出现 JSP Class Not Found 异常

java - 用 Java 中的正则表达式替换

java - Spring MVC "Request processing failed"500 错误

java - Jar 文件找不到 keystore

java - 我无法创建自定义的Spring Boot启动器

java - JBoss 上使用 Maven 的 Eclipse Web 应用程序部署问题