Implementing Authentication and Authorization with ASP.NET Core 2
summary
Walks through a working ASP.NET Core 2 demo app that implements cookie auth, cookie + social (Facebook/Twitter) with a temp cookie flow, Azure AD B2C profiles (uses the TFP claim to pick sign-in/sign-out scheme), and a self-hosted IdentityServer (no UI by default). Shows code for AddAuthentication, app.UseAuthentication, JWT bearer for APIs, OIDC-client.js for SPA pop-up sign‑in, and the pitfall that APIs return 401 until switched to bearer tokens. All demos run live and the patterns shown work as implemented.
AI-written summary · about
chapters (8)
- 0:00Start
- 4:43add different types of authentications
- 8:17add a cookie configuration
- 28:56add another handler
- 33:18register a new user in the system
- 50:48configure your identity
- 58:18verify an access token
- 59:24add a sign-in button and a sign out button
related talks
59mThe whirlwind tour of Authentication and Authorization with ASP.NET Core
51mAuthentication and Authorization in ASP.NET Core 2
57mASP.NET Core Authentication and Authorization - the Key Concepts
41mDemystifying authentication in ASP.NET Core
59mASP.NET Core Authentication and Authorization - the Key Concepts
54mSecuring Web Applications and APIs with ASP.NET Core 2.2 and 3.0
49mDemystifying authentication in ASP.NET Core
58mLet's talk Auth
