Implementing bearer token security
ASP.NET Core offers native authentication and authorization support through its Identity Core
library. This library has direct integration with Entity Framework and allows us to create standard user management tables in the target database. We can also further specify the authentication methods that we prefer and define policies that define authorization rules throughout that application.
This robust library has built-in support for the following:
- User registration: The user manager library has functions that make user creation and management easy. It has functions that cover most of the common user management operations.
- Login, session, and cookie management: The sign-in manager library has functions that can manage user authentication and session management scenarios.
- Two-factor authentication: Identity Core allows us to implement multi-factor authentication natively with email or SMS. This can be easily extended.
- Third-party...