ASP NET Core Identity tutorial from scratch

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2024

Комментарии • 130

  • @kareemkaram8391
    @kareemkaram8391 4 года назад +19

    The most comprehensive tutorial I've seen about Identity whether paid or not

  • @CARDSSerus
    @CARDSSerus 3 года назад +6

    You're a life saver man. Every other tutorial I found never showed how to add identity to existing DBs

    • @anurag9179
      @anurag9179 3 года назад

      I am going through same scenario 😅

    • @kiaanmaharaj
      @kiaanmaharaj 2 года назад

      Did you manage to link your Identity User table to a bridge table or any other bridge table (Im trying to figure this out)

  • @rajeshmule7135
    @rajeshmule7135 3 года назад +1

    from fresher to experience, from 5000 per month to 120000 per month this achievement because of you. only

  • @meetit7031
    @meetit7031 5 лет назад +5

    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

  • @pochron1105
    @pochron1105 4 года назад +4

    Great course, not only everything works but explains what we are actually using. Going into definitions and discussing them is the way forward!

  • @bilalelmursi4039
    @bilalelmursi4039 5 лет назад +14

    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

  • @2009baracuda
    @2009baracuda 4 года назад +6

    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

    • @GhostOfKyivLeague
      @GhostOfKyivLeague 4 года назад

      Thanks, it fixed bug with . Needed the Identity.UI to be added

  • @DecentProgrammer
    @DecentProgrammer 4 года назад +1

    Best tutor in the world.

  • @silvesteronono4157
    @silvesteronono4157 5 лет назад +1

    Thank you. After struggling, I gained deeper understanding on injection, configuration, and application of Identity, as well as everything connects

  • @sabitkondakc9147
    @sabitkondakc9147 3 года назад

    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.

  • @vishalpatel3885
    @vishalpatel3885 4 года назад +2

    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

    • @standman007
      @standman007 4 года назад

      Any idea why i get this when adding migration after adding Identity
      'IdentityUserLogin' requires a primary key to be defined.

  • @MrTotobey
    @MrTotobey 4 года назад

    you are the best brother. God bless you and your family

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  4 года назад

      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.

  • @DharmendraSingh-lq2rc
    @DharmendraSingh-lq2rc 5 лет назад +1

    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.

  • @cymrucoder
    @cymrucoder 4 года назад +1

    Legend. Thanks so much for this series!

  • @strahinja1107
    @strahinja1107 5 лет назад +3

    These videos are like GOT episodes to me.

  • @Beast1612
    @Beast1612 3 года назад

    Good clear explanations. Thanks very much for this great content!

  • @MmMm-tg5mq
    @MmMm-tg5mq 5 лет назад

    nice nice nice, interesting please don't stop you are great trainer

  • @2005bgva
    @2005bgva 4 года назад +2

    Thanks for the video Kudvenkat. One question: you are using code first, but how to include Identity if you work with Database first solution?

  • @shabih001
    @shabih001 4 года назад +1

    If anyone is getting error in inherting IdentityDbContext use it like this " public class AppDbContext : Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext"

  • @paulc1197
    @paulc1197 3 года назад

    Perfectly explained thanks

  • @harisharris5902
    @harisharris5902 4 года назад +2

    Thank you good man for sharing your knowlege for free. God bless you ❤️

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  4 года назад

      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.

    • @MrSyedimranbasha
      @MrSyedimranbasha 4 года назад

      @@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.

    • @techie2903
      @techie2903 4 года назад

      @@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.

    • @techie2903
      @techie2903 4 года назад

      @@MrSyedimranbasha you can also find it under the description under each video here on youtube.

    • @MrSyedimranbasha
      @MrSyedimranbasha 4 года назад

      @@techie2903 @kudvenkat Sorry but I couldnt find the download link for source code on clicking Text.

  • @luisgal93
    @luisgal93 4 года назад

    Man you got a new subscriber. Thank you.

  • @kristiyanivanov7414
    @kristiyanivanov7414 3 года назад

    Thanks sir, I wish you well

  • @vaddiparthivenkatamuralikr8334
    @vaddiparthivenkatamuralikr8334 4 года назад

    Thankyou very much for great videos as always

  • @herbramos3985
    @herbramos3985 5 лет назад +1

    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.

    • @rickm3165
      @rickm3165 5 лет назад

      Also waiting for this.

  • @girishparganiha3694
    @girishparganiha3694 5 лет назад

    Thank You Kudvenkat Sir. Understand this video...!!!

  • @microtech2448
    @microtech2448 5 лет назад +2

    Hi venkat, can you please plan and confirm the authentication and authorization part with custom database as well without using identity at all. Thanks

    • @muhammedali4890
      @muhammedali4890 4 года назад

      I am too looking for the same. Do let me know if you come across any such thing.

  • @prasannahiremath442
    @prasannahiremath442 4 года назад +4

    Hello Venkat,
    Can we use our own tables instead of tables related to identity db context ? If yes, how to implement it ?

  • @musandlala7991
    @musandlala7991 4 года назад

    As usual, brilliant video

  • @rajabmuhamedrajab5128
    @rajabmuhamedrajab5128 2 года назад

    Really Thanks so much

  • @yassermian9913
    @yassermian9913 7 месяцев назад

    Nice video but where are other parts. We want them in sequence or in a play list.

  • @Felix-og7pd
    @Felix-og7pd 2 года назад

    1. inherit from IdentityDbContext(to map user entity)
    AddIdentity vs AddIdentityCore

  • @SakisKarasAW
    @SakisKarasAW 4 года назад

    Thank you sir excellent video!

  • @talkathiriify
    @talkathiriify 5 лет назад

    Thank you very much
    for this amazing series

  • @talharafique8913
    @talharafique8913 5 лет назад +2

    what if i want to use identity with ADO.Net SQL SERVER, then how can i implement identity ?

  • @misenheimer_music
    @misenheimer_music 4 года назад +2

    @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.

  • @balsanbeniamin5519
    @balsanbeniamin5519 3 года назад +1

    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.

  • @Husseinalsaeidi
    @Husseinalsaeidi 4 года назад +1

    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?

    • @jisnamaria311
      @jisnamaria311 4 года назад

      I am also confused about the pros and cons.please do a video...sir.

    • @jisnamaria311
      @jisnamaria311 4 года назад

      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...

  • @Chris-gv7cq
    @Chris-gv7cq 2 года назад +2

    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

  • @Education4All
    @Education4All 5 лет назад +1

    @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.

  • @tarcreations7110
    @tarcreations7110 4 года назад

    Bro...... Thank you so muchhhhhhhh❤️❤️❤️❤️❤️❤️❤️❤️❤️

  • @xanhxanh5097
    @xanhxanh5097 2 года назад

    Great tutorial man :)

  • @adelramadan7050
    @adelramadan7050 4 года назад

    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.
    ]

  • @emekaegbuniwe7372
    @emekaegbuniwe7372 5 лет назад +1

    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?

  • @AshutoshKumar-kt1dd
    @AshutoshKumar-kt1dd 4 года назад

    Great

  • @Gray-Wolf-Media
    @Gray-Wolf-Media 4 года назад

    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

  • @dayachoudekar8
    @dayachoudekar8 5 лет назад

    Am waiting for this session

  • @bennyadiwijaya1606
    @bennyadiwijaya1606 4 года назад

    sir, how to implement more than one identity user, like identity for user, customer etc?

  • @Metalefs1
    @Metalefs1 5 лет назад

    Perfect video, thank you

  • @mosalah-xh3ti
    @mosalah-xh3ti 4 года назад

    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?)"

  • @SzTz100
    @SzTz100 5 лет назад

    Nice job

  • @brianlaudrupchannel
    @brianlaudrupchannel 4 года назад

    anyway of putting identity in data access?

  • @aamirmalik1990
    @aamirmalik1990 3 года назад

    I am using oracle database can I use asp.net icore dentity in oracle ?

  • @sharud5295
    @sharud5295 4 года назад

    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.

  • @durgaraokola641
    @durgaraokola641 4 года назад

    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.

  • @wassollderscheiss33
    @wassollderscheiss33 3 года назад

    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?

  • @Supera45
    @Supera45 3 года назад

    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

  • @tommyh3524
    @tommyh3524 3 года назад

    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.

  • @AndrewBarzyk
    @AndrewBarzyk 5 лет назад +2

    Using Visual Studio 2019
    modelBuilder.Seed(); --> error: ModelBuilder does not contain a definition for 'Seed'

    • @AndrewBarzyk
      @AndrewBarzyk 5 лет назад

      It appears it is related to running Visual Studio 2019. When I load the project in 2017, the error goes away...

    • @Telleelle
      @Telleelle 5 лет назад

      I use VS 2017 and get the same error.

    • @zorigdavaag.8354
      @zorigdavaag.8354 4 года назад

      you have create that seed method which covers previos lesson

    • @nys8260
      @nys8260 4 года назад

      watch this video
      ruclips.net/video/qDUS8ocavBU/видео.html

  • @karthikvyas8629
    @karthikvyas8629 5 лет назад

    Hi , This video is not listed in the playlist "ASP.NET core tutorial for beginners" , Please ignore if it gets added later .

  • @iruesirionoro
    @iruesirionoro 3 года назад

    Thank you

  • @naodagere8210
    @naodagere8210 4 года назад

    Thank you so much.

  • @putinninovacuna8976
    @putinninovacuna8976 4 года назад

    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?

  • @thesuperiorman8342
    @thesuperiorman8342 5 лет назад

    What happen to the Employee entity/table? Are you discarding it?

  • @akhilkankran2067
    @akhilkankran2067 Год назад

    How can we run migration if DbContext file is in different class library

  • @siddhu676
    @siddhu676 5 лет назад

    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?

    • @deepakpandey9406
      @deepakpandey9406 3 года назад

      Inside OnModelCreating method of AppDbContext class add following line after base.OnModelCreating modelBuilder.Entity().ToTable("user");

  • @aznbuboa
    @aznbuboa 4 года назад

    Can we use Identity without aspnet tables?

  • @amitkbirla
    @amitkbirla 3 года назад

    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 ??

  • @SuperMalasia
    @SuperMalasia 5 лет назад

    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

  • @aaronaaronaaron5922
    @aaronaaronaaron5922 5 лет назад

    👏👏👏👏👏

  • @rohanthakur1673
    @rohanthakur1673 3 года назад

    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.

  • @forisekbalint
    @forisekbalint 5 лет назад

    Is it in .Net Core 3 or only 2.2? if it 2.2 then could it work in 3?

  • @sakthir3892
    @sakthir3892 5 лет назад

    Thanks Kudvenkat sir

  • @babajidafan4427
    @babajidafan4427 2 года назад

    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 😿

  • @ikennaezerebo709
    @ikennaezerebo709 4 года назад

    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

  • @DilliChalise
    @DilliChalise 5 лет назад

    why am i seeing this error?
    The string argument 'migrationId' cannot be empty.

  • @VISHNUKUMAR-bh8uj
    @VISHNUKUMAR-bh8uj 4 года назад

    Please tell me the Mongo db version of ""services.AddIdentity()
    .AddEntityFrameworkStores();""

  • @rehmanshahyan
    @rehmanshahyan 5 лет назад

    nice

  • @mohammadyounes645
    @mohammadyounes645 5 лет назад

    what if the membership tables, Views, and procedures are already existing in the DataBase, How can i import them to DBContext Class ?

    • @talharafique8913
      @talharafique8913 5 лет назад

      same question... did you find anything helpful ?

  • @jm-um4st
    @jm-um4st 5 лет назад +2

    where is part I of creating project, etc?

  • @pylvr8021
    @pylvr8021 4 года назад

    Is that asp. Net core 2 or 3.?

  • @milutinbeslic4754
    @milutinbeslic4754 5 лет назад

    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

  • @التاريخ-ح4ظ
    @التاريخ-ح4ظ 4 года назад

    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

  • @Pan_Policjant
    @Pan_Policjant Год назад

    what is this outro music?

  • @ganeshadak9082
    @ganeshadak9082 3 года назад

    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

  • @setyakristyastama4310
    @setyakristyastama4310 5 лет назад

    Process is terminating due to StackOverflowException when Add-Migration ?

    • @dhanyadeeps
      @dhanyadeeps 4 года назад

      I also got it. I commented out OnModelCreating. Issue solved. But not sure of repurcussions. I am just a beginner learning.

  • @netanelrada1645
    @netanelrada1645 5 лет назад

    Hi, where i can find a link to the code?

  • @irq20xdfr
    @irq20xdfr 5 лет назад

    Is it possible to change table and column names ?

    • @mjKeszely
      @mjKeszely 5 лет назад

      That could be helpful -> stackoverflow.com/questions/41442513/how-can-i-change-default-asp-net-identity-table-names-in-net-core

  • @nys8260
    @nys8260 4 года назад

    Thanks ♥

  • @tothedust
    @tothedust 5 лет назад

    Sir what are claims ?

  • @vivekgowda1576
    @vivekgowda1576 4 года назад

    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

  • @vivekgowda1576
    @vivekgowda1576 4 года назад

    Getting error on Seed() "modelbuilder does not definition of the seed () in .net core" Please help on this

  • @ПавелБываев
    @ПавелБываев 4 года назад +1

    I had an error in the line:
    "services.AddIdentity()
    .AddEntityFrameworkStores();"
    ,but i fixed it by updating of NuGet packages)

    • @conaxlearn8566
      @conaxlearn8566 4 года назад

      Were you using VS2019? I'm using VS2019 and I hit this same error. Your solution helped. Thank you.

  • @strandedpirate6346
    @strandedpirate6346 4 года назад

    When it takes more than 100 videos on the same topic you know the framework is garbage.

  • @garrettmatthews2489
    @garrettmatthews2489 3 года назад

    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