简体   繁体   English

如何在不使用 MSAL.js 的情况下处理 web api 和 angular 应用程序之间的 azure 访问令牌

[英]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.

相关问题 使用MSAL Auth令牌来使用Web API 2 - Use MSAL Auth token to consume Web API 2 将 Azure OAuth 访问/刷新令牌馈送到 MSAL 后端以进行缓存 - Feed Azure OAuth access / refresh token to MSAL backend for caching 生成个人访问令牌以调用Azure Web Api(OAuth) - Generate Personal Access Token to call an Azure Web Api (OAuth) 具有Facebook访问令牌的MVC 5 Web API到RegisterExternal而不需要Cookie - MVC 5 Web API with Facebook access token to RegisterExternal without need of Cookie 如何使用Azure AD访问令牌对.NET Core 2.1 API进行身份验证 - How to Authenticate to .NET Core 2.1 API using Azure AD Access Token Azure AD:如何在不使用任何库的情况下访问Azure AD Graph API - Azure AD: How to access Azure AD Graph API without using any library Asp.Net Web Api 2-如何使用身份模型使用JWT访问令牌和用户声明 - Asp.Net Web Api 2 - How to consume JWT access token and user claims using Identity Model 通过 Angular 2 访问 Windows Authenticated Web API,无需登录提示 - Access windows Authenticated Web API through Angular 2 without login prompt Azure Web App - 托管多个应用程序 - 访问Web API,但它显示来自Web App的web.config的错误 - Azure Web App - Multiple apps hosting - Access Web API but it shows error from web.config of Web App ASP.NET Web Api:如何使用URL参数传递访问令牌(oAuth 2.0)? - ASP.NET Web Api: How to pass an access token (oAuth 2.0) using URL parameter?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM