Authentication is one of those features many of us implement without fully understanding what's happening behind the scenes.

Most tutorials tell you to:

Register an app

Install a NuGet package

Copy a few configuration values