How to Add Basic Authentication to an ASP.NET Core Application: OAuth Security - Part 1

Published: 14 December 2020
on channel: Round The Code
6,752
84

An updated version of this video is available here:    • Basic authentication: How to add in A...  

We have a look at integrating Basic authentication into an ASP.NET Core application.

The whole point of setting up Basic authentication is so we can use it when we set up OAuth security.

First, we have a look at how Basic authentication works, and how we can add it to the HTTP request. By adding a base 64 encode of the username and password, we can add it to the Authorization HTTP request header.

Afterwards, we go ahead and write our own attribute. This attribute will be governed by a handler that we will write specifically for Basic authentication.

Finally, we set up a new authentication scheme specifically for Basic authentication. In-addition, we will go ahead and create a new authorisation policy.

📖 Learn .NET and C# with our online courses 📖
https://www.roundthecode.com/dotnet-c...

► More Information: https://www.roundthecode.com/dotnet/h...

► OAuth Security Playlist:    • Playlist  

#aspnetcore #basicauthentication #oauth


Watch video How to Add Basic Authentication to an ASP.NET Core Application: OAuth Security - Part 1 online without registration, duration hours minute second in high quality. This video was added by user Round The Code 14 December 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,752 once and liked it 84 people.