简体   繁体   English

将WebAPI功能限制为授权用户?

[英]Restricting WebAPI functions to users who are authorized?

I was running an asp.net core webapp that used individual user authentication so they could sign up and use various features on the website. 我正在运行一个使用单个用户身份验证的asp.net核心Web应用程序,以便他们可以注册并使用网站上的各种功能。

I'm trying to move towards a React+Redux front end with a WebAPI backend where the WebAPI will contain all the server side features including the user login details. 我正在尝试通过WebAPI后端转向React + Redux前端,其中WebAPI将包含所有服务器端功能,包括用户登录详细信息。

Unfortunately it looks like Asp.net Core does not support authentication with individual user accounts locally. 不幸的是,看起来Asp.net Core不支持在本地使用单个用户帐户进行身份验证。

Is there a way around this? 有没有解决的办法? Is what I'm doing even possible? 我在做什么甚至有可能吗?

Perhaps an alternative option would be to use the same Asp.Net Core web application project as a sort of 'back end' which the React+Redux project front end can connect to through calls to the controllers. 也许另一种选择是使用相同的Asp.Net Core Web应用程序项目作为一种“后端”,React + Redux项目前端可以通过调用控制器连接到该后端。 Is that feasible? 那可行吗?

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

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