Spring Security 5.2.2已合并了Spring Security Oauth项目,但未合并AuthorizationServer或ResourceServer。 Spring Security 5.2.2中的AuthorizationServer的替代品是什么?
https://github.com/spring-projects/spring-security/wiki/OAuth-2.0-Migration-Guide
本文档包含有关将OAuth 2.0客户端和资源服务器从Spring Security OAuth 2.x迁移到Spring Security 5.2.x的指南。由于Spring Security不提供Authorization Server支持,因此迁移Spring Security OAuth Authorization Server不在本文档的讨论范围内。
@EnableAuthorizationServer
@Configuration
public class AuthorizationServerConfiguration extends AuthorizationServerConfigurerAdapter {
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
[...]
}
@Override
public void configure(AuthorizationServerEndpointsConfigurer endpoints) {
[...]
}
}
希望这可以让您入门!