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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access