我遵循了这个指南 http://spring.io/guides/tutorials/spring-boot-oauth2 并且成功地使用Facebook和Github,但是我希望使用GLuu作为我的内部认证提供者来与我的Spring Boot Web应用程序进行OpenID Connect。我已将Gluu配置为返回两种响应类型:授权代码授予类型和ID令牌,并将认证方法设置为client_secret_basic。我不确定在Spring客户端Web应用程序方面需要做什么额外的配置,但我认为基于该指南,我可以进行最小的配置并只需设置
security.oauth2.client.client-id =
security.oauth2.client.client-secret =
security.oauth2.client.access-token-uri=https://mygluuServer/oxauth/seam/resource/restv1/oxauth/token
security.oauth2.client.user-authorization-uri=https://mygluuServer/oxauth/seam/resource/restv1/oxauth/authorize
security.oauth2.resource.user-info-uri=https://mygluuServer/oxauth/seam/resource/restv1/oxauth/userinfo
security.oauth2.client.scope=openid
当我导航到我的Spring Boot Web应用程序时,我被重定向到gluu进行认证,但认证后它没有提示我批准共享我的openid信息,而是将我重定向回Spring Boot应用程序并给出错误消息.. Authentication Failed:Could not obtain access token
有人成功地使用Gluu来保护使用OpenID Connect的Spring Boot Web应用程序吗?