.NET核心新手 - wep api - 安全 - HTTP客户端 - wep app [英] New to .NET core - wep api - security - HTTP client - wep app

查看:161
本文介绍了.NET核心新手 - wep api - 安全 - HTTP客户端 - wep app的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我在一个大团队工作,他们希望我开发一个外联网网站,并允许从SQL服务器访问某些表的几个字段。 ..并确保其余部分完全受限...(这是否意味着我必须执行存储库只读视图模型以从特定表中获取特定列?)



他们不想将数据复制到涉及很多安全问题的另一台服务器。



他们说要在中间开发一个Web应用程序来处理客户的要求......



我们的系统全部采用.Net核心,内部使用代码优先数据库...

他们穿上不希望用户必须在网站上进行身份验证...他们想要收到一封电子邮件,点击一个写入数据库的URL到一个表并检索一些数据......并确保其余部分完全锁定.. 。



我不知道从哪里开始以及如何/如何使用它。



任何代码项目或建议都非常受欢迎......



我知道HTTP客户端基本上是如何工作的,但我对.Net核心有点失落...



我发现了这个:我不知道它是否有任何帮助....它不起作用......

使用ASP.NET Core MVC和Visual Studio构建Web API Microsoft Docs [ ^ ]



这个:第1天和第2天......?

使用ASP.NET Core创建API(第1天):入门和ASP.NET核心请求管道 [ ^ ]



其他任何人都知道一个项目可能对我有所帮助,因为我不确定,这很容易浪费宝贵小时......



我尝试了什么:



我试过创建Web API。我不想浪费太多时间,所以我需要一个关于在哪里投入所有努力的建议。

Hello,

I work in a big team and they want me to develop an extranet website and give access to couple fields of certain tables from the SQL server... And make sure the rest is fully restricted... (Does that mean I have to do repository read-only view model to get those specific columns from specific tables??)

They don't want to replicate the data to another server which involve lot security concerns.

They said to develop a web app in the middle to handle the client's requests...

Our system is all in .Net core for internal using a code first database...
They don't want the user to have to authenticate in the website... They want to get an email click a URL that writes to the database to one table and retrieve some data... And make sure the rest is fully locked down...

I am not sure on where to start and how/what to use to do that.

Any code project or advice would be more than welcome...

I know how HTTP client works basically but I am bit lost with .Net core...

I found this: and I don't know if its any help.... It does not work tho...
Build a web API with ASP.NET Core MVC and Visual Studio | Microsoft Docs[^]

And this: day 1 and day2..?
Create API with ASP.NET Core (Day 1): Getting Started and ASP.NET Core Request Pipeline[^]

Anyone else knows a project that might help me as I am not sure and it's so easy to waste precious hours...

What I have tried:

I tried to create a web API. I dont want waste too much time so I need an advice on where to put all my efforts.

推荐答案

我认为这正是我想要的!! ...



实体框架6 - 在ASP.Net核心中间件中调用服务/存储库方法 - Stack Overflow [ ^ ]
I think this is exactly what I am looking for!!....

entity framework 6 - Calling service/repository methods in ASP.Net Core middleware - Stack Overflow[^]


这篇关于.NET核心新手 - wep api - 安全 - HTTP客户端 - wep app的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆