Spring Boot 3 Azure AD

huangapple go评论78阅读模式
英文:

Spring Boot 3 Azure AD

问题

我已将我的项目更新到Spring Boot 3,现在我对如何"激活" Azure AD感到困惑。
在Spring Boot 2中,我扩展了AADResourceServerWebSecurityConfigurerAdapter,没有其他操作,但自从最新的Spring Security版本不再支持继承,@Bean配置现在是关键。
我是Spring Boot的新手,找不到任何有帮助的信息,尝试查找教程,但所有我找到的内容仍然使用旧方法。
我有一个带有PKCE的Angular GUI,此应用程序尝试与Spring Boot后端通信。
在Spring Boot 2中一切正常。

感谢每一个提示或帮助

已使用的依赖项:


org.springframework.boot
spring-boot-starter-oauth2-client


com.azure.spring
azure-spring-boot-starter-active-directory
4.0.0

英文:

i've updated my Project to Spring Boot 3 and now im confused how to "activate" Azure AD.
In Spring Boot 2 i've extended with AADResourceServerWebSecurityConfigurerAdapter and nothing else to do, but since the latest spring security version inheritence is not more possible and @Bean Configuration is now the thing.
I'm new to spring boot and found nothing that helped me, tried to find any tutorial but everything i've found still uses the old approach.
I have an Angular GUI with PKCE and this app tries to talk with a Spring Boot Backend.
In Spring Boot 2 all works fine.

Thanks for every hint or help

Used Dependencies:

<dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-oauth2-client</artifactId>
    </dependency>
    <dependency>
        <groupId>com.azure.spring</groupId>
        <artifactId>azure-spring-boot-starter-active-directory</artifactId>
        <version>4.0.0</version> 
    </dependency>

答案1

得分: 0

Spring Boot 3 兼容 Spring Cloud Azure Starter Active Directory 5.0.0

您可以参考 文档

英文:

Spring Boot 3 is compatible with Spring Cloud Azure Starter Active Directory 5.0.0

You can refer to this documentation

huangapple
  • 本文由 发表于 2023年2月23日 20:33:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/75544894.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定