[英]How to handle azure access token between web api and angular apps without using MSAL.js
I am working on a project with asp.net web api in back and angular in front.我正在开发一个后面有 asp.net web api 和前面有 angular 的项目。 I have set up normal login in my application.
我已经在我的应用程序中设置了正常登录。 I need to add login with azure as well.
我还需要使用 azure 添加登录。 How can I do azure login with MSAL along with normal login without using MSAL.js just using web Msal.
如何使用 MSAL 进行 azure 登录以及正常登录而不使用 MSAL.js 仅使用 Web Msal。 I also have some example of azure signin with msal using MVC controller.
我还有一些使用 MVC 控制器使用 msal 进行 azure 登录的示例。 Then how can I connect MVC and api sending access token to frontend application?
那么如何将 MVC 和 api 发送访问令牌连接到前端应用程序?
Usually your API should not send access tokens to your frontend.通常,您的 API 不应向前端发送访问令牌。 Is the other way around.
是不是反过来。 Can you explain what you're trying to achieve?
你能解释一下你想要达到的目标吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.