Spring Boot 2 OAuth2 入门更改 [英] Spring Boot 2 OAuth2 starter changes

查看:108
本文介绍了Spring Boot 2 OAuth2 入门更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的一个项目从 Spring Boot 1.5.10.RELASE 迁移到 2.0.0.RC1.似乎他们对 API 进行了一些重大更改,因为我找不到用于为 Azure AD 和 OAuth2 进行一些配置的 @EnableOAuth2SsoUserInfoRestTemplateCustomizer.

I am trying to migrate one of my projects from Spring Boot 1.5.10.RELASE to 2.0.0.RC1. And seems like they made some major changes in API, because I cannot find @EnableOAuth2Sso and UserInfoRestTemplateCustomizer that I used to make some configuration for Azure AD and OAuth2.

在哪里可以找到 Spring Boot 2.0.0 和 OAuth2 的新文档或更改列表?

Where can I find new documentation or change list for Spring Boot 2.0.0 and OAuth2?

推荐答案

详细说明 bjedrzejewski 的回答以及具体的工件信息以及我是如何找到它的:

To elaborate on bjedrzejewski's answer with the specific artifact information and how I found it:

spring boot 上的一个现有 GitHub 问题,我最终被引导到了 2.0.0 版本中注释的位置.它已移至 2.0.0 版本工件的全新项目.

After discussions in an existing GitHub issue on spring boot, I was eventually led to the annotation's location in the 2.0.0 release. It has been moved to a project completely new to the 2.0.0 release artifacts.

要解决此问题并迁移您的项目,请添加工件 org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure 到你的依赖管理配置.

To resolve this issue and migrate your project, add the artifact org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure to your dependency management configuration.

这篇关于Spring Boot 2 OAuth2 入门更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆