Spring security 缺少Id_令牌Spring Oauth2身份验证服务器和mod_Auth_openidc

Spring security 缺少Id_令牌Spring Oauth2身份验证服务器和mod_Auth_openidc,spring-security,spring-security-oauth2,spring-oauth2,mod-auth-openidc,Spring Security,Spring Security Oauth2,Spring Oauth2,Mod Auth Openidc,我正试图让一个Spring安全授权服务器为Apache2背后运行mod_open_idc的安全资源工作。当我访问我的资源时,它会将我重定向到登录页面,但在我登录后,我会被重定向到一个页面,该页面显示处理响应类型时出错。如果我查看apache错误日志,它会显示oidc\u proto\u validate\u code\u response:请求的流是“code”,但在代码响应中找不到“id\u token”参数。返回url时,在末尾带有/redirect\u uri?code=f0I4GB&st

我正试图让一个Spring安全授权服务器为Apache2背后运行mod_open_idc的安全资源工作。当我访问我的资源时,它会将我重定向到登录页面,但在我登录后,我会被重定向到一个页面,该页面显示处理响应类型时出错。如果我查看apache错误日志,它会显示
oidc\u proto\u validate\u code\u response:请求的流是“code”,但在代码响应中找不到“id\u token”参数。返回url时,在末尾带有
/redirect\u uri?code=f0I4GB&state=dda1udo1lleed3v8lppkotxpg
。以下是我的apache配置的相关部分

OIDCProviderIssuer https://URL:9999/uaa/oauth
OIDCProviderAuthorizationEndpoint https://URL:9999/uaa/oauth/authorize
OIDCProviderJwksUri https://URL:9999/uaa/oauth/token_key
OIDCProviderTokenEndpoint https://URL:9999/uaa/oauth/token
OIDCProviderUserInfoEndpoint https://URL:9999/uaa/user
OIDCScope "openid"

OIDCClientID revproxy
OIDCClientSecret revsecret
OIDCSSLValidateServer Off
OIDCCryptoPassphrase MyPassword
OIDCRedirectURI https://URL/home/redirect_uri

<Location "/home">
     AuthType openid-connect
     Require valid-user
     ProxyPass  https://URL:8443/
     ProxyPassReverse  https://URL:8443/
  </Location>
OIDCProviderIssuerhttps://URL:9999/uaa/oauth
OIDCProviderAuthorizationEndpointhttps://URL:9999/uaa/oauth/authorize
OIDCProviderJwksUrihttps://URL:9999/uaa/oauth/token_key
OIDCProviderTokenEndpointhttps://URL:9999/uaa/oauth/token
OIDCProviderUserInfoEndpointhttps://URL:9999/uaa/user
OIDCScope“openid”
OIDClientid revproxy
OIDCClient Cret revsecret
OIDCSSL验证服务器关闭
OIDCCryptoPassphrase MyPassword
白蚁https://URL/home/redirect_uri
AuthType openid连接
需要有效用户
ProxyPasshttps://URL:8443/
ProxyPassReversehttps://URL:8443/

我也很乐意发布任何spring代码,我只是不知道哪些部分可能有问题。我也不知道哪一部分配置错误,我的直觉是mod_auth_openidc,但可能是spring。

似乎spring不是为OpenID Connect配置的,而是仅为OAuth 2.0配置的。对于使用作用域
OpenID
的OpenID连接客户端,提供者应该返回
id\u令牌。显然,Spring配置错误,或者甚至不支持OpenID Connect。

有没有办法,使用自定义代码或实现?特别是隐性赠款流动?通过在重定向的url中引入id_令牌,请求中是否有openid的作用域?