我正在试着让一个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和启动客户机中尝试了许多选项,试图解决这个问题,但似乎都不起作用。我假设这是一个简单的修复,但我找不到任何有用的信息。
发布于 2017-05-16 02:16:46
我有一个同事和我一起看过它,我们发现了一个未输入的重定向url。现在我来看下一个问题。
发布于 2020-05-06 18:13:21
在我们的示例中,除了将重定向uri添加到Gluu中的client之外,我们还转到了sector identifier部分,并为特定客户端添加了一个新的重定向登录Uri条目

https://stackoverflow.com/questions/43984178
复制相似问题