Mar*_*ius 13 spring spring-boot spring-security-oauth2
我在Spring 5和Spring boot 2.0.0.M3中构建了一个Authentication Service和Webapplication,我正试图将它移植到Spring boot 2.0.0.M6现在.
我注意到@EnableOauth2Sso它不再可用了spring-boot-autoconfigure; 我曾使用这个注释来配置我的Web应用程序spring boot 2.0.0.M3.我已经查看了Spring用于配置Oauth2 Client使用的示例,@EnableOAuth2Client但示例中使用的Configuration对象UserInfoTokenServices似乎也不再存在.
如何配置我的客户端Web应用程序OAuth2 in spring boot versions >= 2.0.0.M6?
已经详细说明了spring boot上现有的GitHub问题,最终导致我在2.0.0版本中找到注释的位置。它已移至一个2.0.0发行工件全新的项目。
要解决此问题并迁移项目,请将工件org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure添加到依赖项管理配置中:
<dependency>
<groupId>org.springframework.security.oauth.boot</groupId>
<artifactId>spring-security-oauth2-autoconfigure</artifactId>
<version>2.0.0.RELEASE</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
小智 1
此问题现已在 GitHub 中跟踪,并在 2.0.0 SNAPSHOT 中提供,目标是 RC1 版本。
在此处查看问题:https ://github.com/spring-projects/spring-boot/pull/10672
| 归档时间: |
|
| 查看次数: |
2307 次 |
| 最近记录: |