英文:
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中一切正常。
感谢每一个提示或帮助
已使用的依赖项:
英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论