在Spring Security中,不推荐使用的AuthorizationServer替代什么?

问题描述 投票:0回答:1

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不在本文档的讨论范围内。

spring deprecation

spring spring-boot spring-security spring-security-oauth2
1个回答
0
投票
@EnableAuthorizationServer
@Configuration
public class AuthorizationServerConfiguration extends AuthorizationServerConfigurerAdapter {

   @Override
   public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
      [...]
   }

   @Override
   public void configure(AuthorizationServerEndpointsConfigurer endpoints) {
      [...]
   }
}

摘自Spring文档,位于https://docs.spring.io/spring-security-oauth2-boot/docs/current/reference/html/boot-features-security-oauth2-authorization-server.html

希望这可以让您入门!

© www.soinside.com 2019 - 2024. All rights reserved.