Тёмный

Beginners ASP.NET Core Identity Tutorial 

Code with Julian
Подписаться 8 тыс.
Просмотров 43 тыс.
50% 1

In this video tutorial I’ll explain the basics of ASP.NET Core Identity, specifically the Registration, Registration confirmation, logging in and out will be broken down line by line. We’ll be scaffolding all the necessary resources to expose this functionality, allowing us to improve and tailor the authentication processes for our own applications.
👉Join our monthly email club: signup.codewithjulian.com
🎉Check Out Further Resources: codewithjulian.com
👍If you enjoyed this tutorial, please like this video consider subscribing for more content like this!
😎Subscribe for endless .NET Tutorials: / codewithjulian
By the end of this tutorial, you will:
- Understand how to generate an ASP.NET Core Application with Identity, specifically Individual User Accounts, using your own data store
- Know what scaffolding is and how to use it to generate the Identity resources necessary for a fully-customizable authentication process
- Understand the basics of Identity in ASP.NET such as how the Registration process works, as well as the Email Confirmation.
- Understand how the user can log in and out of an application, in a click of a button
- Understand a high-level overview of the ASP.NET Identity core tables
- Understand the basics of Authorization
- Finally, you’ll be capable of Authorizing parts of a Razor page or entire routes
Source code: github.com/iulianoana/aspnet-...
0:00 - Intro
1:03 - Create a New ASP.NET 6 Project
1:46 - Setup the Database Connection String
3:08 - Install Package Necessary for Scaffolding
3:29 - Scaffold Identity Razor Pages
4:59 - Update The Database
5:15 - ASP.NET Core Identity Entities
7:11 - Fix Script Rendering Issue
8:41 - ASP.NET Identity Logic Walk-Through
20:43 - ASP.NET Core Identity Authorization
24:21 - Add Not Authorized Redirect
Useful Links:
ASP.NET Core Identity Microsoft Article: docs.microsoft.com/en-us/aspn...
Scaffolding Identity Microsoft Article: docs.microsoft.com/en-us/aspn...
Dependencies:
- Microsoft.VisualStudio.Web.CodeGeneration.Design --version 6.0.0
The next video, ASP.NET Identity with IdentityServer4 will premiere on 10th Jan 22 and can be found here 👉 • ASP.NET Identity with ...
Credits:
- Sound effects obtained from www.zapsplat.com
- Icons designed by www.freepik.com and www.flaticon.com/
- Images from the artists on unsplash.com/

Опубликовано:

 

21 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 54   
@tudor14
@tudor14 2 года назад
Julian. These are some quality tutorials. Thank you for providing them.
@rafaelfigueiredo6032
@rafaelfigueiredo6032 Год назад
While I was watching this almost 30 minutes of videos, several times I stopped to click "like" but unfortunately youtube only allows you to like once. Thank you from Brazil!
@CodeWithJulian
@CodeWithJulian Год назад
That is very kind of you! I'm glad you enjoyed the video.
@goodluckemenike657
@goodluckemenike657 Год назад
This is really amazing, JWT has been like a myth to me but you have unlocked it in a simple and comprehensive understanding, thanks.
@deeptikarambelkar6173
@deeptikarambelkar6173 2 года назад
Great content..thank you for the lucid overview..hope that your channel flourishes.
@TheDrewCrawford
@TheDrewCrawford 2 года назад
This is very helpful content. Keep up the great work!
@trirunner2520
@trirunner2520 Год назад
This was a fantastic tutorial! Easy to follow, well developed, and relevant. Keep up the awesome work!
@CodeWithJulian
@CodeWithJulian Год назад
Thanks a lot for your feedback! Glad you enjoyed it!
@eduardrivas6964
@eduardrivas6964 Год назад
This must be the most useful channel I've found so far on the entire RU-vid. Practical examples of real world apps, I love you man, this is not just a good job, but an AWESOME job!
@CodeWithJulian
@CodeWithJulian Год назад
Thanks so much for your kind words, Eduard! I'm really pleased the tutorials have been helpful to you!
@justraccoon3047
@justraccoon3047 Год назад
Really easy to understand and useful content. Thank you a lot!👍
@CodeWithJulian
@CodeWithJulian Год назад
Thanks for comment, glad you've found it useful!
@raphaeldevmtb
@raphaeldevmtb Год назад
What a high quality video. Thanks!
@CodeWithJulian
@CodeWithJulian Год назад
Thanks! Glad you enjoyed it!
@pw.70
@pw.70 2 года назад
I have to agree with the sentiment of others - quality tutorials, Julian - thank-you.
@CodeWithJulian
@CodeWithJulian 2 года назад
Thanks for the kind words! Happy they've been helpful!
@kuschizu1280
@kuschizu1280 2 года назад
Julian! We need more content... you just uploaded a view videos and you already have over 800 subs :D You can do it... just keep the grind up and you will grow ^^
@obinnaokafor6252
@obinnaokafor6252 2 года назад
Thank you.
@fabianoswald7270
@fabianoswald7270 2 года назад
You are amazing!🍻
@CodeWithJulian
@CodeWithJulian 2 года назад
You too, for going through this tutorial!
@guillermomazzari8320
@guillermomazzari8320 10 месяцев назад
Thanks for sharing, is there a way to do this without Entity framework? Using dapper instead
@Mikewendwosen
@Mikewendwosen 2 года назад
great tutorial
@CodeWithJulian
@CodeWithJulian 2 года назад
Glad it's been helpful!
@samirpatel9763
@samirpatel9763 3 месяца назад
Hi, Do you have a video to authenticate Blazor Server App using MS(Work & school) Account?
@paulmccauley8690
@paulmccauley8690 Год назад
How do you add a profile image?
@rubenlawkwang4430
@rubenlawkwang4430 5 месяцев назад
Can you please make a video on how to customize the identity for example I a stake holder called customer and I would like to customize Identity for that user to insert a profile image
@MTSightseeing
@MTSightseeing 2 года назад
Hi, please make a full video on Asp. Net core API
@starbuck3980
@starbuck3980 5 месяцев назад
I just get framework 3.1, if i make a net core project that is not razor server i can use net core 8
@thunan
@thunan 2 года назад
How use identity in Core MVC?
@mailsforasif6642
@mailsforasif6642 Год назад
How come you had logged out and not login?
@KenKraska
@KenKraska 2 года назад
Hi - Can you tell me if you have a video on setting up the email client for the Identity email. I can't seem to find any mention other than they did away with the simple smpt from old versions. Thanks
@CodeWithJulian
@CodeWithJulian 2 года назад
Hi there, unfortunately I haven't got any video yet focusing on that. Would a more up to date tutorial solve your problem? I know Jason Watmore has a blog post on smtp with MailKit in .NET 6. Hope this helps!
@KenKraska
@KenKraska 2 года назад
​@@CodeWithJulian - Thanks for your help. I will check out Jason's post. I like the pace and style of your videos, the videos and audios are crisp, clear and your narration is easy to hear and understand. All the best, Ken
@sk8leesk8
@sk8leesk8 Год назад
Good Job. I was just wondering what was happening behind the scenes. I don't like wondering how things work :)
@CodeWithJulian
@CodeWithJulian Год назад
Thanks! Glad I was able to shed some light over this subject!
@eder123loko
@eder123loko 2 года назад
Hey i'm building a prototype of a social media and i used the scaffold item to add a Login and registration model, but i cant add First name and Surname to the registration model, cause i don't know what should i write in Registration, can you help me ?
@ehtishamakram4437
@ehtishamakram4437 2 года назад
you want to add first name or last name in registration ? Am I right
@eder123loko
@eder123loko 2 года назад
@@ehtishamakram4437 yes
@idwerke1885
@idwerke1885 2 года назад
hi Julian how can i do offline mode for blazor and identity server. hope can hear you soon Thank
@CodeWithJulian
@CodeWithJulian 2 года назад
Hi there, unfortunately Blazor Server does not work offline when deployed, only Blazor Web Assembly. And even then, the whenever a database is involved, you'll need an internet connection. In this case, we're using Blazor Server, this means the entire C# logic from our Blazor components is processed on the server. To allow this to happen we'll need an internet connection when our app is deployed.
@MTSightseeing
@MTSightseeing 2 года назад
Come back with project in. .Net core please
@sahild6584
@sahild6584 2 года назад
How can we integrate with generic oauth provider like pingfederate there is no package available
@CodeWithJulian
@CodeWithJulian 2 года назад
I am not familiar with that provider and so unfortunately, I won't be able to advise.
@victorgilbert2565
@victorgilbert2565 11 месяцев назад
Great video. However, i'd appreciate if you follow best practices in your videos
@FernandoZamudioC
@FernandoZamudioC 2 года назад
That's work wonderful BUT after the "HELLO WORLD" becomes the real work, i create perfectly the identity but y make a "Scaffold-DbContext" of my database and of course this create my tables and the identity tables, all with the prefix ASP, but when i try to run the website prompt a error because the table IdentityUserLogin have two Keys... can you helpme please ?
@CodeWithJulian
@CodeWithJulian 2 года назад
Hm interesting, I haven't had that error. Best thing I could suggest is clone the repo and compare the files with yours as that project is fully working. Hope this helps!
@FernandoZamudioC
@FernandoZamudioC 2 года назад
@@CodeWithJulian thanks for your faster response
@krzysztofkozowski5676
@krzysztofkozowski5676 2 года назад
Hey, i don't have register and login buttons and also don't have LogOut.cs :( DId everything step by step like You Did, have u goth any solution for this?
@krzysztofkozowski5676
@krzysztofkozowski5676 2 года назад
Nvm, i created app without authorization.
@CodeWithJulian
@CodeWithJulian 2 года назад
Hey did you try downloading the sourcecode? It is identical with what's being created in the tutorial.
@januszzbabaganusz2226
@januszzbabaganusz2226 2 года назад
Idk why, but before migration had to use Add-Migration "Initial-Create" and then Update-Database, without 1st command migration didn't work :/
@CodeWithJulian
@CodeWithJulian 2 года назад
Hm, creating the project from a template as in the tutorial is guaranteed to add those migrations in for you. But it's good you found a solution.
@ai4mm
@ai4mm Год назад
@@CodeWithJulian If following from scratch like the tutorial, you are right. But as @Janusz mentioned, need to add migration first, if following your tutorial to add to an existing project.
@starbuck3980
@starbuck3980 5 месяцев назад
You say its a net core tutorial but you use net 6.0, not net core
Далее
ASP.NET Identity with Identity Server 4 | Tutorial Part 1
1:02:44
ASP.NET Core Crash Course - C# App in One Hour
1:00:44
Просмотров 1,5 млн
Azure App Service in 15 MINUTES | Web App Tutorial
16:23
Google authentication in asp.net core mvc
23:35
Просмотров 21 тыс.