n层中的Asp.Net标识 [英] Asp.Net Identity in n-tiers

查看:117
本文介绍了n层中的Asp.Net标识的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。



我想知道如何在n层设计中使用Identity ASP.NET。



我有一个提供所有业务逻辑的DLL,除了身份验证和授权。



我想用ASP.NET身份实现它,但我'我发现很难将这个DLL的类暴露给MVC设计。



如果你能说出任何例子或阅读材料,这将是非常受欢迎的。 />


谢谢。

Hello.

I wonder how to use Identity ASP.NET on a n-tier design.

I have a DLL that provides all the business logic, except authentication and authorization.

I would like to implement it using ASP.NET Identity, but I'm finding it difficult to expose the classes of this DLL to the MVC design.

If you can name any example or reading material, this would be very welcome.

Thank you.

推荐答案

这通常是通过在另一个虚拟目录中托管OWIN文件并公开这些服务来完成的通过WCF或WebApi。

在这种情况下,您希望将身份验证集成到业务dll中,因此您需要找到一种机制来将dll作为服务托管。



我不知道任何其他方式,也许其他一些答案可以提供帮助。
This is generally done by hosting OWIN files in another virtual directory and exposing these services either through WCF or WebApi.
In this case, you want to integrate authentication into the business dll and so you will need to find a mechanism to host the dll as a service.

I'm not aware of any other way, maybe some other answer can help.


这篇关于n层中的Asp.Net标识的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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