Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

ASP.NET Core OAuth Authorization - .NET 7 Minimal APIs C#

Raw Coding via YouTube

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

Reviews

Start your review of ASP.NET Core OAuth Authorization - .NET 7 Minimal APIs C#

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.