Extend IdentityUser in ASP NET Core

Поділитися
Вставка
  • Опубліковано 25 січ 2025

КОМЕНТАРІ • 120

  • @micheleboscagin3213
    @micheleboscagin3213 5 років тому +3

    OH MY GOD! Finally a clear, simple but detailed video about Identity User with extension!
    Thanks very much!!! I follow also angularjs, angular2, asp.net mvc for .NET framework and all videos are exceptional!
    Love your works!

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 років тому +1

      Hello Michele - Thank you very much for taking time to give feedback. This means a lot. I am very glad you found the videos useful.
      Good luck and all the very best with everything you are doing.

  • @nimatsergiu2942
    @nimatsergiu2942 4 роки тому +2

    U are doing an excellent job - you might not even think how much you help with your videos. I appreciate you sharing this vast knowledge about these good practices and tricks. Thank you!

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  4 роки тому +1

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

  • @jobiraw
    @jobiraw 5 років тому +1

    Dear Venkat we can only say thank you....Asp net identity is what we wanted strongly n at this time you are the best one describing it in the best way....keep up...!!

  • @joaocampos9615
    @joaocampos9615 5 років тому +10

    Hey, Venkat. Thank you very much for this.
    I've been following you for some time. Your explanations are always so detailed and at the same time so clear. That only demonstrates how deep is your knowledge about the subjects.
    I hope you never stop posting :D

  • @jeronimosanchez2014
    @jeronimosanchez2014 3 роки тому

    Fue mi único heeroeeee
    en este lío!!!!
    Grande! No encontraba por ningún lado cómo modificar esa tabla, muchas gracias!!!

  • @AndrewBarzyk
    @AndrewBarzyk 5 років тому +2

    Great series. I just purchased it not because I needed the DVD but because i'm finding your videos indispensable! Great Job!

  • @eduardojimeneztroncoso4621
    @eduardojimeneztroncoso4621 2 роки тому

    Clear explanations, ...i was able to alter the IdentityUser sucessfully. Thanks !

  • @kevinrichards7248
    @kevinrichards7248 2 роки тому

    This course is better than many paid courses

  • @peterjenerette
    @peterjenerette 4 роки тому

    Quite useful. This explanation allowed me to start and figure my way through a previously multi dbcontext Core 3.1 app, with existing user tables. Key to this was how to do it when IdentityUser has already been applied and in use. Thank you.

  • @mikehartwig5319
    @mikehartwig5319 2 роки тому

    Thanks! You helped me.
    I was forgetting to put after inheriting IdentityUser in my DBContext.

  • @JarlamDev
    @JarlamDev 3 роки тому

    You are the best. You have saved me several times.

  • @predaandreeadaniela5454
    @predaandreeadaniela5454 4 роки тому +2

    Very useful and each detail carefully explained! Thank you so much!

  • @olehkulynych7954
    @olehkulynych7954 3 роки тому +1

    Thx, very helpful video for AspNetCore.Identity.

  • @ayatoshiroo6296
    @ayatoshiroo6296 4 роки тому +1

    I love you man, best tutorials for Asp .

  • @okaberintarou248
    @okaberintarou248 2 роки тому

    This video was perfect... thank you!

  • @liveepiceveryday3086
    @liveepiceveryday3086 4 роки тому +1

    Thank you very much for the video. really appreciate your videos.

  • @elpiruwebmaster
    @elpiruwebmaster 8 місяців тому

    The best content as always

  • @stephennixey
    @stephennixey 3 роки тому

    Thank you so much for making this so clear, got this done in minutes.

  • @m3xpl4y
    @m3xpl4y 3 роки тому

    THANK YOU, this Video is real good, thank you

  • @salarkazazi7584
    @salarkazazi7584 3 роки тому

    Learned a lot from you ! thank you so much

  • @bennyadiwijaya1606
    @bennyadiwijaya1606 4 роки тому +2

    hello, great tutorial..
    what if we want more than one identity user, like identity for student, identity for instructor etc, how can we do that?

  • @kourosh234
    @kourosh234 5 років тому +1

    Hello Mr. Venkat. I would like to see a video or series on what you think about the current situation of technologies. I mean with Blazor coming, the complexity in Angular and versioning madness from google! What do you suggest sir? Many of us have the responsibility to choose technologies when we start a new project. I thought to ask you because for me and many other programmers you are "the mentor". Thank you so much for all your excellent videos. Looking forward for your reply. BR. kourosh :)

  • @philiperiskallaleal6010
    @philiperiskallaleal6010 10 місяців тому

    Dear presenter, thank you for this wonderful video; most didactic. I was wondering whether it would be possible to extend the IdentityUser to be injected into a genericRepository. If so, how can one do that?

  • @singhbrijesh
    @singhbrijesh 5 років тому +1

    Excellent, thanks a lot for adding this video in the list, very helpful.

  • @dmitryshumarov18
    @dmitryshumarov18 Рік тому

    Many thanks for tthis tutorial!

  • @mohamedsalah324
    @mohamedsalah324 3 роки тому

    Thank you for this great playlist
    I have a question here if we want to add base audit entity how to inherit from both idenityUser and the baseEntity

  • @يوسفالقادري-ز1ر
    @يوسفالقادري-ز1ر 4 роки тому

    thanks a lot for this explanation ....... its very clear

  • @learntolearn7502
    @learntolearn7502 5 років тому +2

    Thank you very much Venkat, you are always the best. Will you explain One-to-Many Relationships in EntityFrameworkCore in the upcoming videos in this series?

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 років тому +6

      Hello Kamal - Sure, we will cover table relationships in our upcoming videos. Thank you for the suggestion.

    • @learntolearn7502
      @learntolearn7502 5 років тому

      I am Waiting impatiently ​@@Csharp-video-tutorialsBlogspot , thank you very much

  • @ivandrofly
    @ivandrofly 5 років тому +4

    It was like two weeks ago I was looking for this online and couldn't find any useful information... Microsoft didn't say much about this feature.

    • @sinbladee8334
      @sinbladee8334 4 роки тому +2

      docs.microsoft.com/en-us/aspnet/core/security/authentication/add-user-data?view=aspnetcore-3.1&tabs=visual-studio

  • @mduduzimthethwa9603
    @mduduzimthethwa9603 5 років тому +2

    I need to reference the ApplicationUser table, how can i do this?

  • @mdsaddamkhan8400
    @mdsaddamkhan8400 4 роки тому

    1.in 7:25 part of the video I am having problem when I included
    public class AppDbContext : IdentityDbContext
    I am getting red squiggly under AppDbContext .
    2.when I hover Over the mouse I m getting this information
    The type 'EmployeeManagement.Models.ApplicationUser' can not be used as a type parameter 'TUser' in the generic type or method 'IdentityDbContext'.There is no implicit reference conversion from 'EmployeeManagement.Models.ApplicationUser' to 'Microsoft.AspNetCore.Identity..IdentityUser'
    3.The error message is same as I have mentioned in point 2
    sir please help me how to get rid of this error

    • @mdsaddamkhan8400
      @mdsaddamkhan8400 4 роки тому

      @@K99-w6w .. sorry to say.... No

    • @mdsaddamkhan8400
      @mdsaddamkhan8400 4 роки тому

      @@K99-w6w actually.. my whole project get crushed.... For the time being left it and working in blazor..

  • @QusaiHamed
    @QusaiHamed 5 років тому

    I think the coming videos are related to Roles and Policies I can't wait to watch them I have complicated project needs that part

  • @mohammadothman6066
    @mohammadothman6066 3 роки тому

    Thank you sir!
    but how can i do this with tow domain

  • @ArtMeeron
    @ArtMeeron 4 роки тому +1

    Hi Venkat, very cool tutorial as always)))! I still came a cross with that exeption "No service for type 'Microsoft.AspNetCore.Identity.SignInManager`1...". I've changed all IdentityUser references but it doesn't help. Do you have any ideas what it could be?

  • @SMRITIK18
    @SMRITIK18 3 роки тому

    Is it possible to remove few columns like normalised user, two factor enabled ,etc from the aspnetusers table

  • @sreenuksr
    @sreenuksr 4 роки тому

    Hi Venkat, Looking for SSO implementation in ASP.Net Core. please share if it is available. thanks in advance

  • @iordanissavv
    @iordanissavv 4 роки тому

    Although I'm just beginning with C# and ASP.NET Core, I believe extending the IdentityUser changing the ASP.NET default table, is wrong. You should create another user table, with 1:1 relationship both on the same PK and set all the additional fields required. Changes of default ASP.NET system's tables could possibly be lost, if the platform makes upgrades/updates. I would like to see that implementation by you, since I have really liked the way you present things. Very informative videos for me as a beginner. THNXS

    • @conaxlearn8566
      @conaxlearn8566 4 роки тому

      Not in this case. What Venkat taught is officially documented here: docs.microsoft.com/en-us/aspnet/core/security/authentication/customize-identity-model?view=aspnetcore-3.1#custom-user-data

  • @amir7afari
    @amir7afari 2 місяці тому

    You're awesome!

  • @Mehmetmydnn
    @Mehmetmydnn 5 років тому +1

    Thanks sir, but how we can do our customize user and role classes?

  • @BakuraRyuk
    @BakuraRyuk 4 роки тому

    It works!! Thank you so much dude

  • @jacobtunning3274
    @jacobtunning3274 4 роки тому

    I'm wondering how I can get the registration view into my project. It is not there for me.

  • @LiMITZERO
    @LiMITZERO 5 років тому

    Hi, I tried to implement this on my asp.net core 3 web api... but no migration changes upon adding migration even though i changed the ApplicationDbContext : IdentityDbContext.. or this slution is for .net 2.2. below onbly?

  • @abdelrahmanmahmoud9955
    @abdelrahmanmahmoud9955 4 роки тому

    Thank you very much that was very helpful 😊

  • @hamidkhan7281
    @hamidkhan7281 4 роки тому

    Great Explanation Thanks a lot

  • @Jabrelz
    @Jabrelz 4 роки тому

    How can I retrieve this city field from other controllers? For example I want to register something and insert this city information based on the logged in user

  • @HussainGhuloumQ8
    @HussainGhuloumQ8 5 років тому

    what if identity user is referenced in a razor page? do i need to change it?

  • @erdierdy
    @erdierdy 4 роки тому

    Thank you so much i have same migration problem.thanks to you

  • @larsmeeuwsen859
    @larsmeeuwsen859 4 роки тому

    Amazing tutorial super clear and helpful :D

  • @rayt6867
    @rayt6867 5 років тому +1

    Many thanks for all your great videos, could you please show us how to use roles and an admin be able to edit users.

  • @talkathiriify
    @talkathiriify 5 років тому

    Thank you very much
    For the amazing video series

  • @dangelogonzalez1459
    @dangelogonzalez1459 4 роки тому

    Very cool videos. Do you know how can I relate AspNetUsers table with another table we created?

  • @kathrynrose919
    @kathrynrose919 4 роки тому

    I'm getting the following error when I try and submit through the registration page:
    InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UI.Services.IEmailSender' while attempting to activate 'ProjectManager.Areas.Identity.Pages.Account.RegisterModel'.

  • @harrygarala4119
    @harrygarala4119 5 років тому +1

    Excellent

  • @amirhanna6270
    @amirhanna6270 2 роки тому

    very good

  • @kodatykaushik6655
    @kodatykaushik6655 5 років тому

    Thank you Venkat, your series of courses is the best of all the educational training. Can we make .Net core API IdentityUser point to existing database ? Actually i am developing .Net Core API from scratch which needs to point migration database which is already built by web. Appreciate in advance!

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 років тому

      Hello Kaushik - Yes, we can. ASP .NET Core Identity is highly configurable and extensible. Hope this helps.

  • @sourabhthorat9550
    @sourabhthorat9550 3 роки тому

    Can you tell me how to validate the email and phone number when we use IdentityUser?

  • @pz3328
    @pz3328 4 роки тому

    I need to pass Repository with users to view in ViewBag. How to do it?

  • @muzaradi
    @muzaradi 3 роки тому

    #kudvenkat thank you for your video.
    I'm using skoruba/IdentityServer4.Admin repository for my project.
    I created ViewModel class (public class CreateDateViewModel : IdentityUser) for some custom fields (CreateDate) and inherited it from IdentityUser. After migration (Add-Migration "MigrationName" -Context IdentityServerConfigurationDbContext -o Migrations/IdentityServerConfiguration) and update the database, the field appeared in the database, but the Account controller still can't access the user.CreateDate property (var user = await _userManager.GetUserAsync(model.UserName); user.CreateDate is missing)
    Can you suggest what to do?

  • @alihameed2457
    @alihameed2457 5 років тому +1

    Kindly make a video on UserStore in identity framework.
    How to manage user secrets in .net core.
    Deployment of mvc .net core in IIS in a web server machine and make it available to others through internet.
    Thank you in advance to the great legend, Sir Venkat.
    Stay blessed. Aameen

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 років тому +1

      Hello Ali - Sure, we will cover all the concepts you mentioned in our upcoming videos. Great suggestions.

    • @alihameed2457
      @alihameed2457 5 років тому

      @@Csharp-video-tutorialsBlogspot Hope so sir. Thank you a lot..

  • @davidespada01
    @davidespada01 5 років тому

    thank you , can we apply permissions by user [out of role scope] with identity ?

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 років тому

      Yes we can David. Will discuss in our upcoming videos.

    • @davidespada01
      @davidespada01 5 років тому

      @@Csharp-video-tutorialsBlogspot Thank you sir , your the best

    • @QusaiHamed
      @QusaiHamed 5 років тому

      I found this article www.thereformedprogrammer.net/a-better-way-to-handle-authorization-in-asp-net-core/

  • @bhanumathi2841
    @bhanumathi2841 5 років тому

    Hi Sir...I am trying to add extended properties to my Aspnetuser table, but when i am doing it the following error occurs "There is already an object named 'AspNetRoles' in the database." and the changes are not reflected in the table. What could be a possible mistake.

    • @utkarshpatil8909
      @utkarshpatil8909 5 років тому

      Delete your existing database and add new migration then update database.

  • @mduduzimthethwa9603
    @mduduzimthethwa9603 5 років тому

    Thanks that was very helpful!

  • @ahmedyasser3483
    @ahmedyasser3483 3 роки тому

    Working Thank You

  • @maradasa985
    @maradasa985 3 роки тому

    Sorry but what if I have several kind of users with specific data?

  • @sakthir3892
    @sakthir3892 5 років тому

    Nice Explainations

  • @alin-floringuran7249
    @alin-floringuran7249 4 роки тому

    how do i call city prop in my html?

  • @kshameed7
    @kshameed7 5 років тому

    Hello sir.
    What if my application uses different Web api or another application to fetch users. How do we extend the Identityuser table in this situation

    • @miller01
      @miller01 3 роки тому

      exactly my question, let me know if you figured this out

  • @davidjackson148
    @davidjackson148 5 років тому

    Thanks for that very useful, but you don't show how to retrieve the value and display in on a view :(

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 років тому

      Hello David - I think we discussed this in one of the future videos. Not sure which one. You can find all the videos in logical sequence at the following link. Hope this helps.
      www.pragimtech.com/courses/asp-net-core-mvc-tutorial-for-beginners/

  • @JuanSebastianR21
    @JuanSebastianR21 3 роки тому

    master ! ! !

  • @KNAIN420
    @KNAIN420 4 роки тому

    I don't have account controlelr : ( and i have individual authentication

  • @MmMm-tg5mq
    @MmMm-tg5mq 5 років тому

    nice video

  • @papoo1393
    @papoo1393 4 роки тому

    hi thnak you for your lesson can you please update this video to asp.core 3 the only model i have is {error view models} and its diffrent

  • @samuelw5860
    @samuelw5860 4 роки тому

    Thank you

  • @ivandrofly
    @ivandrofly 5 років тому

    Thank you sir!

  • @MohamedAshraf-vi4eu
    @MohamedAshraf-vi4eu 5 років тому

    Is these course for asp.net core 1.0 or 2.2 !?

  • @sondrehyland3818
    @sondrehyland3818 4 роки тому

    This does not work with Visual Studio 2019... Used a good hour and a half trying to figure out what to do.... Greate tutorial, works fine in 2017

    • @conaxlearn8566
      @conaxlearn8566 4 роки тому

      Arlind is right. It works for me in VS2019 also. What's not working for you?

    • @mdsaddamkhan8400
      @mdsaddamkhan8400 4 роки тому

      @@conaxlearn8566 I am getting red squiggly under AppDbContext
      After adding Identity
      Can you help me please

    • @conaxlearn8566
      @conaxlearn8566 4 роки тому

      @@mdsaddamkhan8400 Hi friend, can you please:
      1. Tell me which part of the video you are having trouble with, please provide the time line in hh:mm format.
      2. Check what the lightbulb tells you when you hover over the squiggly?
      3. Try to build the project and let me know what error messages you get.
      I'll see if I can figure out anything.

    • @mdsaddamkhan8400
      @mdsaddamkhan8400 4 роки тому

      @@conaxlearn8566 1.In 7:25 part of the video I am having problem when I include
      public class AppDbContext : IdentityDbContext
      I am getting red squiggly under AppDbContext .
      2.when I hover Over the mouse I m getting this information
      The type 'EmployeeManagement.Models.ApplicationUser' can not be used as a type parameter 'TUser' in the generic type or method 'IdentityDbContext'.There is no implicit reference conversion from 'EmployeeManagement.Models.ApplicationUser' to 'Microsoft.AspNetCore.Identity..IdentityUser'
      3.The error message is same as I have mentioned in point 2

    • @conaxlearn8566
      @conaxlearn8566 4 роки тому

      @@mdsaddamkhan8400 Ok, go to your ApplicationUser.cs and make sure your class is inherited from IdentityUser.
      public class ApplicationUser : IdentityUser
      {
      public string City { get; set; }
      }

  • @coolwaterdvr
    @coolwaterdvr 3 роки тому

    🙏🙏🙏🙏🙏

  • @duba_official
    @duba_official 5 років тому

    Can't wait for you to get to Roles. And please, when you get to them, would kindly show implementation on ASP.Net Webforms not MVC/Core

  • @harrygarala4119
    @harrygarala4119 5 років тому +1

    try to start Q#

  • @manjurenjith8377
    @manjurenjith8377 5 років тому

    Sir, can you make complete tutorial for making asp. net project samples for final year students

  • @alamsetigourikumar5497
    @alamsetigourikumar5497 5 років тому

    Please record some react and redux video tutorial.

  • @menaf77
    @menaf77 5 років тому

    Excellent

  • @nicholasdunkley2189
    @nicholasdunkley2189 3 роки тому

    Thank You