The best tutorial about Identity! I looked a lot of tutorials but only after that I understood what was going on. Thank You Advice: Pin all tutorials about Identity in the playlist. It will be easier to find new people in need
When using ASP.NET Core 3.1 you can add the using statement for IdentityDbContext if you have previously added the following necessary packages for ASP.NET Core Identity with NuGet package manager: Microsoft.AspNetCore.Identity.EntityFrameworkCore Microsoft.AspNetCore.Identity.UI
Enchanting Tutorial, thanks a million as soon as I get my bulky salary I'll be donating your channel, your work is simply awesome! In the meantime , Microsoft.AspNetCore.Identity.EntityFrameworkCore NuGet package should be added before moving further with IdentityDbContext.
Those who are facing EF migration problem 1. Install EntityFramework package 2. while executing command use EntityFrameworkCore\Add-Migration and EntityFrameworkCore\update-database It would work
Hello MrTotobey - Thank you very much for the feedback. Means a lot. I have included all the .NET core tutorial videos, slides and text articles in sequence on the following page. Hope you will find it handy. www.pragimtech.com/courses/asp-net-core-mvc-tutorial-for-beginners/ When you have some time, can you please leave your rating and valuable feedback on the REVIEWS tab. It really helps us. Thank you. Good luck and all the very best with everything you are doing.
There are no good examples of using ado.net and stored procedures with Asp.Net Core anywhere Mr Venkat. An example on how to use ado.net and stored procedures in Core would help greatly Sir. Thank you so much for all your hard work.
If anyone is getting error in inherting IdentityDbContext use it like this " public class AppDbContext : Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext"
Hello Harris - Thank you very much for the feedback. Means a lot. I have included all the .NET core tutorial videos, slides and text articles in sequence on the following page. Hope you will find it handy. www.pragimtech.com/courses/asp-net-core-mvc-tutorial-for-beginners/ When you have some time, can you please leave your rating and valuable feedback on the REVIEWS tab. It really helps us. Thank you. Good luck and all the very best with everything you are doing.
@@Csharp-video-tutorialsBlogspot Can you also provide link to download source code for all the ASP.Net Core tutorial videos ? That would be really helpful.
@@MrSyedimranbasha You can get all the code on his blog csharp-video-tutorials.blogspot.com/2019/01/aspnet-core-tutorial-for-beginners.html. Click on the 'Text' link on any topic . you can find the code there.
You should do a video on .net core identity without EF , using Dapper perhaps. EF is so bloated. Microsoft should make it easier like in the old membership provider way of user identity.
Hi venkat, can you please plan and confirm the authentication and authorization part with custom database as well without using identity at all. Thanks
@kudvenkat Great tutorial! Love all your videos. I'm still not exactly sure about one thing. Did you create your own User class with..password, email, etc. as properties BEFORE all of the configuration? Or are the "UserIdentity" tables created upon the migration the user entities themselves? I hope this makes sense.
Hi I do have a question, when we create a new user, for example an employee makes a new account(register in application) the User table will get populated, but shouldn't employee table get also populated at the same time? That's were I'm confused.
Thanks for your videos , I have question, you used here Identity built in authentication technique , what about Owin authentication approach, and what are the cons and pros of each?
ALso i am confused about the terms oauth.owin,identity,token based,forms authentication. I know all.but I don't know how they are interconnected or the difference or pros and cons ..Anybody please make it clear...
if Microsoft.AspNetCore.Identity.EntityFrameworkCore does not work as it did not for me then...Install-Package Microsoft.AspNetCore.Identity.EntityFrameworkCore -Version 5.0.0-preview.3.20215.14 in package manager
@venket sir i need your help, please make a video on custom user and role management in asp.net mvc as soon as possible i am unable to understand in other videos. plz.
Hi @ kudvenkat , Thank you on this wonderful tutorial ,I get on this message error when add this commend line "Update-Database" ->>[Index was outside the bounds of the array. ]
One thing I found was after I installed the current dotnet core I had to update my security certificates. It even told me in the console window the problem and solution
Hi Kudvenkat, Thank you for your great teaching. I have a problem when I inheritance existing DBContext from IdentityDbContext. Here is the error message : "Error CS1061 'AppDBContext' does not contain a definition for 'SaveChanges' and no accessible extension method 'SaveChanges' accepting a first argument of type 'AppDBContext' could be found (are you missing a using directive or an assembly reference?)"
Hi sir, I am using Sqlserver & DB for data storage and our own custom c# handler library to do crud. I would like to implement login authentication in Blazor (web assembly and server) without EF core. If so do I need Identity? If I need an identity , then how do I have to implement it in my application? Please reply.
I already have a user store (i.e. User and Role tables) in my legacy application. I want to migrate to Identity for several reasons but obviously I have no use for the tables it depends on by default. What can I do?
Hi, kudvenkat, I'm wondering is there any way to override data access layer by ourselves? I wish to do the Identity stuff in my DAL then send a URL from my API layer, and the Service layer get the URL and render in my Client layer, but I couldn't find a way to replace the function doing by Identity itself.
thank you a lot for the video tutorial. In my project, I want to change the names of the table. I do not have to see aspnet in the table names how can I change that in the beginning before migration?
In order to deploy this app in a linux server I should install mysql-server in the linux server and then do the migration there or there is another way to do that? Thanks
Great video, can someone please look into it, --> Error CS0119 'IdentityServiceCollectionExtensions.AddIdentity(IServiceCollection)' is a method, which is not valid in the given context Project_Name.
Please don't forget to change AppDbContext to IdentityDbContext, if you don't your migration will not work. I wasted my 2 hours to search what's the problem in my vs/code/system 😓😓😓😓 due to this silly mistake 😿
First I want to thank you for your videos, I really appreciate it. When i try to create migration i get this error GenericArguments[0], 'Blog.Data.Repository.IRepository', on 'Microsoft.EntityFrameworkCore.Design.IDesignTimeDbContextFactory`1[TContext]' violates the constraint of type 'TContext'. I have added as many using statement as i can relate to...although i have already made an Initial migration without hiccups. I await your favorable response...stay safe
I'm getting a "An operation was scaffolded that may result in the loss of data. Please review the migration for accuracy." warning when adding migration. If anyone had simmilar problem and solved it would be nice to share some of that magic. Googling for two and half hours now to no awail. Thnx
Method not found: 'Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder`1.HasIndex(System.Linq.Expressions.Expression`1)'. when i migration get this error
I am getting this error Method not found : 'Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder 1.HasIndex (System.Linq.Expresions.Expresion `1)'. Please help 🙏🙏🙏 to resolve that
An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: AddEntityFrameworkStores can only be called with a user that derives from IdentityUser. Unable to create an object of type 'AppDbContext'. For the different patterns supported at design time, see go.microsoft.com/fwlink/?linkid=851728
The most comprehensive tutorial I've seen about Identity whether paid or not
You're a life saver man. Every other tutorial I found never showed how to add identity to existing DBs
I am going through same scenario 😅
Did you manage to link your Identity User table to a bridge table or any other bridge table (Im trying to figure this out)
from fresher to experience, from 5000 per month to 120000 per month this achievement because of you. only
The best tutorial about Identity! I looked a lot of tutorials but only after that I understood what was going on. Thank You
Advice:
Pin all tutorials about Identity in the playlist. It will be easier to find new people in need
Great course, not only everything works but explains what we are actually using. Going into definitions and discussing them is the way forward!
Venkat sir, you are an amazing teacher! can't describe in words!! Thank you very much for your help and looking forward for the rest of the videos
When using ASP.NET Core 3.1 you can add the using statement for IdentityDbContext if you have previously added the following necessary packages for ASP.NET Core Identity with NuGet package manager:
Microsoft.AspNetCore.Identity.EntityFrameworkCore
Microsoft.AspNetCore.Identity.UI
Thanks, it fixed bug with . Needed the Identity.UI to be added
Best tutor in the world.
Thank you. After struggling, I gained deeper understanding on injection, configuration, and application of Identity, as well as everything connects
Enchanting Tutorial, thanks a million as soon as I get my bulky salary I'll be donating your channel, your work is simply awesome!
In the meantime , Microsoft.AspNetCore.Identity.EntityFrameworkCore NuGet package should be added before moving further with IdentityDbContext.
Those who are facing EF migration problem
1. Install EntityFramework package
2. while executing command use EntityFrameworkCore\Add-Migration and EntityFrameworkCore\update-database
It would work
Any idea why i get this when adding migration after adding Identity
'IdentityUserLogin' requires a primary key to be defined.
you are the best brother. God bless you and your family
Hello MrTotobey - Thank you very much for the feedback. Means a lot. I have included all the .NET core tutorial videos, slides and text articles in sequence on the following page. Hope you will find it handy.
www.pragimtech.com/courses/asp-net-core-mvc-tutorial-for-beginners/
When you have some time, can you please leave your rating and valuable feedback on the REVIEWS tab. It really helps us. Thank you. Good luck and all the very best with everything you are doing.
There are no good examples of using ado.net and stored procedures with Asp.Net Core anywhere Mr Venkat. An example on how to use ado.net and stored procedures in Core would help greatly Sir. Thank you so much for all your hard work.
Legend. Thanks so much for this series!
These videos are like GOT episodes to me.
Good clear explanations. Thanks very much for this great content!
nice nice nice, interesting please don't stop you are great trainer
Thanks for the video Kudvenkat. One question: you are using code first, but how to include Identity if you work with Database first solution?
If anyone is getting error in inherting IdentityDbContext use it like this " public class AppDbContext : Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext"
Thanks
Perfectly explained thanks
Thank you good man for sharing your knowlege for free. God bless you ❤️
Hello Harris - Thank you very much for the feedback. Means a lot. I have included all the .NET core tutorial videos, slides and text articles in sequence on the following page. Hope you will find it handy.
www.pragimtech.com/courses/asp-net-core-mvc-tutorial-for-beginners/
When you have some time, can you please leave your rating and valuable feedback on the REVIEWS tab. It really helps us. Thank you. Good luck and all the very best with everything you are doing.
@@Csharp-video-tutorialsBlogspot Can you also provide link to download source code for all the ASP.Net Core tutorial videos ? That would be really helpful.
@@MrSyedimranbasha You can get all the code on his blog csharp-video-tutorials.blogspot.com/2019/01/aspnet-core-tutorial-for-beginners.html.
Click on the 'Text' link on any topic . you can find the code there.
@@MrSyedimranbasha you can also find it under the description under each video here on youtube.
@@techie2903 @kudvenkat Sorry but I couldnt find the download link for source code on clicking Text.
Man you got a new subscriber. Thank you.
Thanks sir, I wish you well
Thankyou very much for great videos as always
You should do a video on .net core identity without EF , using Dapper perhaps. EF is so bloated. Microsoft should make it easier like in the old membership provider way of user identity.
Also waiting for this.
Thank You Kudvenkat Sir. Understand this video...!!!
Hi venkat, can you please plan and confirm the authentication and authorization part with custom database as well without using identity at all. Thanks
I am too looking for the same. Do let me know if you come across any such thing.
Hello Venkat,
Can we use our own tables instead of tables related to identity db context ? If yes, how to implement it ?
As usual, brilliant video
Really Thanks so much
Nice video but where are other parts. We want them in sequence or in a play list.
1. inherit from IdentityDbContext(to map user entity)
AddIdentity vs AddIdentityCore
Thank you sir excellent video!
Thank you very much
for this amazing series
what if i want to use identity with ADO.Net SQL SERVER, then how can i implement identity ?
@kudvenkat Great tutorial! Love all your videos. I'm still not exactly sure about one thing. Did you create your own User class with..password, email, etc. as properties BEFORE all of the configuration? Or are the "UserIdentity" tables created upon the migration the user entities themselves? I hope this makes sense.
Hi I do have a question, when we create a new user, for example an employee makes a new account(register in application) the User table will get populated, but shouldn't employee table get also populated at the same time? That's were I'm confused.
Thanks for your videos , I have question, you used here Identity built in authentication technique , what about Owin authentication approach, and what are the cons and pros of each?
I am also confused about the pros and cons.please do a video...sir.
ALso i am confused about the terms oauth.owin,identity,token based,forms authentication. I know all.but I don't know how they are interconnected or the difference or pros and cons ..Anybody please make it clear...
if Microsoft.AspNetCore.Identity.EntityFrameworkCore does not work as it did not for me then...Install-Package Microsoft.AspNetCore.Identity.EntityFrameworkCore -Version 5.0.0-preview.3.20215.14 in package manager
@venket sir i need your help, please make a video on custom user and role management in asp.net mvc as soon as possible i am unable to understand in other videos. plz.
Bro...... Thank you so muchhhhhhhh❤️❤️❤️❤️❤️❤️❤️❤️❤️
Great tutorial man :)
Hi @
kudvenkat
, Thank you on this wonderful tutorial ,I get on this message error when add this commend line "Update-Database" ->>[Index was outside the bounds of the array.
]
What if i don't want to use a database, Like my user information are gotten from an API, How can i manage user Login?
Great
One thing I found was after I installed the current dotnet core I had to update my security certificates. It even told me in the console window the problem and solution
Am waiting for this session
sir, how to implement more than one identity user, like identity for user, customer etc?
Perfect video, thank you
Hi Kudvenkat,
Thank you for your great teaching. I have a problem when I inheritance existing DBContext from IdentityDbContext. Here is the error message :
"Error CS1061 'AppDBContext' does not contain a definition for 'SaveChanges' and no accessible extension method 'SaveChanges' accepting a first argument of type 'AppDBContext' could be found (are you missing a using directive or an assembly reference?)"
Nice job
anyway of putting identity in data access?
I am using oracle database can I use asp.net icore dentity in oracle ?
Hi sir, I am using Sqlserver & DB for data storage and our own custom c# handler library to do crud. I would like to implement login authentication in Blazor (web assembly and server) without EF core. If so do I need Identity? If I need an identity , then how do I have to implement it in my application? Please reply.
hai venket sir i need your help, please make a video on identity server 4 with saml 2.0. i am unable to understand in other videos. plz.
I already have a user store (i.e. User and Role tables) in my legacy application. I want to migrate to Identity for several reasons but obviously I have no use for the tables it depends on by default. What can I do?
I am scanning QR code in my android phone and adding code back in application but still it is showing as invalid code. what can be possible issues
Hi, kudvenkat, I'm wondering is there any way to override data access layer by ourselves? I wish to do the Identity stuff in my DAL then send a URL from my API layer, and the Service layer get the URL and render in my Client layer, but I couldn't find a way to replace the function doing by Identity itself.
Using Visual Studio 2019
modelBuilder.Seed(); --> error: ModelBuilder does not contain a definition for 'Seed'
It appears it is related to running Visual Studio 2019. When I load the project in 2017, the error goes away...
I use VS 2017 and get the same error.
you have create that seed method which covers previos lesson
watch this video
ruclips.net/video/qDUS8ocavBU/видео.html
Hi , This video is not listed in the playlist "ASP.NET core tutorial for beginners" , Please ignore if it gets added later .
Thank you
Thank you so much.
so what if I want use my custom IdentityUser with my own fields? what if I don't have the same columns as IdentityUser on my database?
What happen to the Employee entity/table? Are you discarding it?
How can we run migration if DbContext file is in different class library
thank you a lot for the video tutorial. In my project, I want to change the names of the table. I do not have to see aspnet in the table names how can I change that in the beginning before migration?
Inside OnModelCreating method of AppDbContext class add following line after base.OnModelCreating modelBuilder.Entity().ToTable("user");
Can we use Identity without aspnet tables?
Is there a way, I can add new table for keeping last 10 hash password so that user don't choose one of them, using identity ??
In order to deploy this app in a linux server I should install mysql-server in the linux server and then do the migration there or there is another way to do that? Thanks
👏👏👏👏👏
Great video, can someone please look into it, --> Error CS0119 'IdentityServiceCollectionExtensions.AddIdentity(IServiceCollection)' is a method, which is not valid in the given context Project_Name.
Is it in .Net Core 3 or only 2.2? if it 2.2 then could it work in 3?
Thanks Kudvenkat sir
Please don't forget to change AppDbContext to IdentityDbContext, if you don't your migration will not work. I wasted my 2 hours to search what's the problem in my vs/code/system 😓😓😓😓 due to this silly mistake 😿
First I want to thank you for your videos, I really appreciate it.
When i try to create migration i get this error
GenericArguments[0], 'Blog.Data.Repository.IRepository', on 'Microsoft.EntityFrameworkCore.Design.IDesignTimeDbContextFactory`1[TContext]' violates the constraint of type 'TContext'.
I have added as many using statement as i can relate to...although i have already made an Initial migration without hiccups.
I await your favorable response...stay safe
why am i seeing this error?
The string argument 'migrationId' cannot be empty.
Please tell me the Mongo db version of ""services.AddIdentity()
.AddEntityFrameworkStores();""
nice
what if the membership tables, Views, and procedures are already existing in the DataBase, How can i import them to DBContext Class ?
same question... did you find anything helpful ?
where is part I of creating project, etc?
Is that asp. Net core 2 or 3.?
I'm getting a
"An operation was scaffolded that may result in the loss of data. Please review the migration for accuracy."
warning when adding migration.
If anyone had simmilar problem and solved it would be nice to share some of that magic. Googling for two and half hours now to no awail.
Thnx
Method not found: 'Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder`1.HasIndex(System.Linq.Expressions.Expression`1)'. when i migration get this error
what is this outro music?
I am getting this error Method not found : 'Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder 1.HasIndex (System.Linq.Expresions.Expresion `1)'.
Please help 🙏🙏🙏 to resolve that
Process is terminating due to StackOverflowException when Add-Migration ?
I also got it. I commented out OnModelCreating. Issue solved. But not sure of repurcussions. I am just a beginner learning.
Hi, where i can find a link to the code?
Is it possible to change table and column names ?
That could be helpful -> stackoverflow.com/questions/41442513/how-can-i-change-default-asp-net-identity-table-names-in-net-core
Thanks ♥
Sir what are claims ?
An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: AddEntityFrameworkStores can only be called with a user that derives from IdentityUser.
Unable to create an object of type 'AppDbContext'. For the different patterns supported at design time, see go.microsoft.com/fwlink/?linkid=851728
Getting error on Seed() "modelbuilder does not definition of the seed () in .net core" Please help on this
Hi Vivek Can you solve the problem?
@@thepro-coder9978 yes...
@@vivekgowda1576 How?
@@thepro-coder9978 I have hard code data and using some library of identity server cmds
@@vivekgowda1576 ok bro thanks
I had an error in the line:
"services.AddIdentity()
.AddEntityFrameworkStores();"
,but i fixed it by updating of NuGet packages)
Were you using VS2019? I'm using VS2019 and I hit this same error. Your solution helped. Thank you.
When it takes more than 100 videos on the same topic you know the framework is garbage.
I'm a student now, but in 10 years, once I'm filthy rich from my success, I'm flying you out to have dinner with me and my family