我正在尝试让 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"
}
应用程序.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 和引导客户端上尝试了很多选项来尝试解决这个问题,但似乎没有任何效果。我假设这是一个简单的修复,但我无法找到任何有用的信息。