Authentication using Database Logins

橙三吉。 提交于 2019-12-11 13:28:04

问题


I'm somewhat new to ASP.NET MVC and I hoped you can help me with authentication for my app.

I have a MVC application that needs to be authenticated using SQL Server Log Ins. This means I have to create roles and users in SQL Server, and all security permissions are managed at Database level. Roles, users, and permissions aren't constant and we should be able to manage them.

Any suggestion? Is there anyway to override default behaviors of Identity to achieve this goal? What do you think is the best way to implement this need? Should I Use AD or DB Logins are fine?

Thanks in advance


回答1:


Based on my working experience with diverse login mechanisms, I would like to suggest you the following route

  1. Choose AD as your identity provider[IDP]
  2. Register your application as an Relying Party [RP]
  3. Get the federation metadata from AD to set up your application
  4. In case you have your AD Server with ADFS 3.0, refer this link for a sample
  5. In case of going through the OWIN Federation Middleware, it should be very easy for you with little development effort as given in this link

With ASP.Net MVC5 & Owin this task of yours should be a piece of cake

For Azure AD based samples, refer here or for first hand information, read this article



来源:https://stackoverflow.com/questions/29325208/authentication-using-database-logins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!