.NET 8 Authentication with Identity in a Web API with Bearer Tokens & Cookies 🔒

preview_player
Показать описание
Table of Contents:
00:00 .NET 8 Authentication with Identity in a Web API 🔒
01:05 Official Announcement
02:14 Create a Web API Project
03:08 Add an Entity Framework DataContext
06:12 Register the IdentityDbContext
10:18 Add Authentication with Identity
12:04 Add & run code-first migrations
14:35 Run the App
16:34 Configure Swagger to test the Authentication
18:06 Test the Authentication with Swagger
18:58 What about Cookie Authentication?

#DotNet #Identity #WebAPI
Рекомендации по теме
Комментарии
Автор

If everyone had the kind heart and the passion that Patrick has for teaching and .NET, the world surely would be a better place. Thanks as always, man!

joaogabrielv.m
Автор

Great video! Would be great if you could add the following as well:
1. Authorization roles, policies, etc
2. Extending the existing feature set provided, like login/register/2fa and adding some own logic as well
3. Creating and using our own UserEntity class instead of IdentityUser.
4. Integrating it with Blazor 8 using the best practices

Thanks!

safiullah
Автор

Tried implementing this from an article I saw a while back and it didn't work, glad this came out!

nerdydragon
Автор

Hey Patrick. Thank you for everything you do and for being a cornerstone in the .NET community.

BrokenSword
Автор

This is the absolute first anything I have ever subscribed to on YouTube. This is perfect.

marcjohnston
Автор

You are so chilled man

Brilliant videos

James
Автор

i searched alot, but you were just so perfect on this tutorial and i learned alot , you deserve like and sub, thx man

hosseinghahari
Автор

Thanks, man! Very much appreciate your work!

leonidmisak
Автор

Amazing, Microsoft did a great job with this feature in .Net 8, thanks Patrick for this introduction!!!

TheMezanine
Автор

I wasted half a day because I added the wrong library. Be careful when adding libraries!!!

sertunc-ko
Автор

When took some NZT pills and decided to become a developer :) Thanks a lot, Patrick!

IlyaArlenka
Автор

I am watching your tutorial when our baby also sleep:)

nasermasri
Автор

This tutorial saved my life. Thank you.

garagamesdev
Автор

Thank you for this instructive video. It's really nice how it's so simple now. I would really love a followup video explaining logging with google/MS/Apple or the two way authentification.

bigfi
Автор

Much Love from Pakistan
you are really great teacher for me!😀😊

farahhashim
Автор

It’s great, what You are showing here. Could You prepare tutorial how to use new authorisation in Blazor WebAssembly, please?

maththaioseleutheriaphilos
Автор

Hi, @PatrickGod
First, great video! Thanks for that.

You told that token isn't a JWT. For professional applications, the mode showed in the video is safe?
PS: Sorry for the english. I'm from Brazil, and I'm trying to write without Google Translator to learn.

marciliojrr
Автор

This is brilliant!
It covers so many types of authentication in such a short video & it's easy to follow along with.
Granted that it doesn't quite go in-depth with how the authentication types work properly but it shows how to implement it all, step by step, without any issues!

Thanks for sharing this & keep doing what you do. You're helping so many developers/engineers, myself included 😁

CiaranTeachesCode
Автор

Thank you man, really appreciate your work!

luisedwards
Автор

You are the Straight to point as Love you YOU are the BEST 😇

DotNetProgram