Answers
This section contains the solutions to the thought experiments and the answers to the lesson review questions in this chapter.
Objective 5.1 Thought experiment
There are several options that could be used to solve this problem. The primary, and likely easiest-to-implement, option is to create a custom authentication provider that implements IIdentity and IPrincipal. By overriding the base methods with the custom code that accesses the database, you can use the same methods to determine authenticity as you would with a .NET-delivered authentication provider.
It should not, as long as you develop your solution using IIdentity and IPrincipal interfaces rather than the implementation. If the authentication mechanism changes, managing that in ...
Get Exam Ref 70-486: Developing ASP.NET MVC 4 Web Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.