2

I am about to start a new ASP.NET MVC5 project and I am planning the authentication / authorization requirements at present.

The client wants Windows authentication, to prevent their users having to remember another new password. The site is web facing, so the downside would be an ugly pop up box asking for their credentials when they are accessing it offsite. Worse yet, on mobile, this box would be a problem.

The Active Directory Authentication options from out of the box are new to me, but after some reading appear to be more about controlling roles and authorization through your AD groups. I intend to keep all authorization concerns internal to the application.

Ideally, users will have Window authentication but with a nice login page where they can select their domain from a dropdown box and enter their domain login credentials. From some reading I thought possibly ActiveDirectoryMembershipProvider is the answer. However with the new available options I want to be sure there is not other options before blindly taking this route.

4
  • 1
    If you are going to downvote, at least say why so the question can be improved (assuming it's salvageable).
    – Lotok
    Commented Apr 22, 2014 at 8:53
  • I didn't downvote but per my reading, your question reads like asking to recommend a tool / library, off-topic here: meta.programmers.stackexchange.com/questions/6483/…
    – gnat
    Commented Apr 22, 2014 at 9:17
  • Maybe needs reworded then as that isn't the case. I will re-think wording. ActiveDirectoryMembershipProvider could do what I need, but I am unsure if an OOTB options is a better fit
    – Lotok
    Commented Apr 22, 2014 at 9:20
  • If it helps, i've created an MVC5 application with OWIN that uses windows authentication. github.com/vishnu4/AspNetMVC5WinAuth . Pretty easy to switch between active directory and forms if you need to.
    – Phil
    Commented Jul 17, 2017 at 13:42

1 Answer 1

-2

Well, I found This which is cleanest i've found. I have confirmed the new OOTB options are not suited. This is just showig switching out form membership to use the AD Membership instead. You can then just clear out all the ApplicationUser stuff.

2
  • Active Directory? Yikes. What if it's just a mom and pop store? What does "not suited" mean? Commented Apr 22, 2014 at 16:19
  • @RobertHarvey The requirement I am needing to fill is Active Directory. I wanted to avoid just using windows authentication though as the gray pop up box if accessed remotely is ugly. the link gives an overview, I would be moving the auth stuff to an auth class and injecting it in to the controller. The "not suited" refers to the new ASP.NET authentication options added in VS2013
    – Lotok
    Commented Apr 22, 2014 at 20:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.