Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to implement external authentication using OAuth in ASP.NET Core with this comprehensive tutorial. Explore the process of setting up GitHub external authentication, understand how OAuth is utilized for external authentication, and discover the AddOAuth functionality. Gain hands-on experience with ASP.NET Core C# minimal API external authentication examples, compatible with .NET 7, .NET 6, and .NET 5. Cover essential topics such as configuring the client, setting up callback endpoints, implementing multiple authentication schemes, handling state parameters, and delving into OAuthHandler internals. Master techniques for saving tokens, creating SignInScheme cookies, retrieving tokens from authentication properties, and adding token claims to cookies. Explore user information endpoints, claim actions, and claim mapping. Learn how to save tokens to a database and implement Facebook authentication. Enhance your understanding of ASP.NET Core authentication and authorization through this practical, step-by-step video tutorial.
Syllabus
Introduction
Configuring Client
Callback Endpoint
2nd Authentication Scheme
Return Uri
State Parameter
OAuthHandler Internals
Saving Tokens Option
SignInScheme Cookie Creation
Get Tokens from Authentication Properties
Adding Token Claims to Cookie
Calling User Information Endpoint
Claim Actions & Mapping Claims
Saving Tokens to Database
Facebook Authentication
Taught by
Raw Coding