Overview
Learn to implement OAuth authorization in ASP.NET Core using .NET 7 Minimal APIs and C#. Explore cookie authentication, set up a YouTube client, and create authorization policies for integration endpoints. Configure OAuth, handle redirects, manage scopes, and enhance sign-in sessions. Discover techniques for loading specific authentication sessions, adding claims to cookies, consuming tokens, and implementing ClaimsTransformation for token loading. Follow along with practical examples and gain hands-on experience in authorizing users to access external APIs, such as YouTube, using OAuth in ASP.NET Core applications.
Syllabus
Introduction
Cookie Authentication
Youtube Client Setup
Call to Youtube Endpoint
Authorization Policy for Integration Endpoints
OAuth Config Setup
Redirect to OAuth flow
Scopes
Enhancing the sign in session
Loading specific authentication session
Adding claims to cookie
Consuming the token
ClaimsTransformation for token loading
Taught by
Raw Coding