我正在使用Spring security 5.0中的Spring-security-OAuth2Jars:http://repo.spring.io/release/org/springframework/security/
可用的jars有: spring-security-oauth2-core、spring-security-oauth2-client、spring-security-oauth2-jose、spring-security-oauth2-resource-server
我需要实现授权服务器。
早些时候,我从下面的位置使用spring-security-OAuth2JAR:http://repo.spring.io/release/org/springframework/security/oauth/spring-security-oauth2/2.0.9.RELEASE/
在当前版本中,oauth2 2.0.9版本中提供的各种接口,如TokenStore、ClientDetailsService、ClientRegistrationService都丢失了。
有没有办法在spring security 5.0中使用最新的spring-security-oauth2-core/client/jose/resource-server jars来实现同样的功能?
谢谢,
发布于 2019-05-15 11:31:09
不幸的是,在最新的版本(5.1.5)中,没有像Spring Security OAuth那样对创建您自己的授权服务器提供本机支持,它具有方便的@EnableAuthorizationServer和相关的支持类。
然而,好消息是它很快就会得到Spring Security 5的支持
计划还将在2018年年中为资源服务器提供支持,并在2018年年底或2019年初为授权服务器提供支持。
显然,它将在2019年晚于预期。
发布于 2019-05-22 23:53:55
可以使用此spring-security-oauth2-boot shim jar创建授权服务器,直到spring Security5重写此until。
https://stackoverflow.com/questions/56129740
复制相似问题