简体   繁体   English

Angular 使用 azure adfs 和 springboot api 登录

[英]Angular login with azure adfs and springboot api

I have a webapp in angular 11 and the backend with springboot 2.4.4.我在 angular 11 和 springboot 2.4.4 的后端有一个 webapp。 I use JWT for login and the users are in the db but now I have to change to login with azure adfs.我使用 JWT 登录,用户在数据库中,但现在我必须更改为使用 azure adfs 登录。 I have not idea how do it.我不知道怎么做。 I read and tried loging in angular, but i don't know how login in angular with azure and use this token in the springboot security back.我阅读并尝试登录 angular,但我不知道如何使用 azure 登录 angular 并在 springboot 安全返回中使用此令牌。 Someone can help me?有人可以帮助我吗?

We could use Authorization Code flow for a webapp with angular and the backend with springboot.我们可以对带有 angular 的 webapp 和带有 springboot 的后端使用授权代码流

There is a demo using Angular app as Client and Spring Boot app as Resource Server .有一个使用 Angular 应用程序作为客户端和 Spring 启动应用程序作为资源服务器演示 Code in github. github 中的代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM