[英]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? 那可行吗?
I think that's feasible, check out this article, it might help 我认为这是可行的,请查看本文,这可能会有所帮助
https://medium.com/@MaartenSikkema/using-react-redux-and-webpack-with-dotnet-core-to-build-a-modern-web-frontend-7e2d091b3ba https://medium.com/@MaartenSikkema/using-react-redux-and-webpack-with-dotnet-core-to-build-a-modern-web-frontend-7e2d091b3ba
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.