ASP.NET Core Identity - Authentication and Authorization in ASP.NET Core - Login and Registration

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

ความคิดเห็น • 146

  • @ezekielgallardo8385
    @ezekielgallardo8385 2 ปีที่แล้ว +7

    This was very helpful. I appreciate the fact that you take the time to explain everything and develop step by step instead of using the "out of the box" features.

  • @SameerSaini
    @SameerSaini  ปีที่แล้ว

    👉 Full ASP NET Core Razor Pages - Scratch to Finish (.NET 7)
    www.udemy.com/course/aspnet-core-razor-pages-web-application-development/?couponCode=APRIL2023

  • @andysmith872
    @andysmith872 3 หลายเดือนก่อน

    Thanks Sameer - very informative. A couple of minor tweaks and this video was still relevant in 2024 with vs2022 & .net 8. Great stuff!

  • @SameerSaini
    @SameerSaini  3 ปีที่แล้ว +5

    Thank you all for taking out the time to watch my video, If you liked it, show your support by pressing the like button and subscribing to my channel. :)
    💖 Subscribe to show support: bit.ly/2FAgXzS
    ☕ Buy me a coffee: www.buymeacoffee.com/SameerSaini

    • @dallyoluwafemi2827
      @dallyoluwafemi2827 2 ปีที่แล้ว

      mr sameer,you are a legend..i just finish your course on udemy

  • @mohammedsaadahmed2231
    @mohammedsaadahmed2231 2 ปีที่แล้ว +2

    I was beginner and started my first mini project by your video, it really help me a lot, thankyou so much for explaining clearly.

    • @SameerSaini
      @SameerSaini  2 ปีที่แล้ว

      Great to hear that 👏

  • @juanreyes7082
    @juanreyes7082 3 ปีที่แล้ว +4

    Hi! Thank you very much for sharing your knowledge with us. This has been very helpful. I look forward to future videos on Razor Pages.

  • @sreejachowdary8346
    @sreejachowdary8346 ปีที่แล้ว +1

    Thank you sameer gaaru. This helped me alot.

  • @shailendratiwari5714
    @shailendratiwari5714 3 ปีที่แล้ว +1

    Sandar sir, identity example 👍👍👍

  • @grow4935
    @grow4935 ปีที่แล้ว +8

    What do I do if Startup.cs is missing in Visual Studio 2022?

  • @ciorcagaby1527
    @ciorcagaby1527 2 ปีที่แล้ว

    Very well explained, clean code, simplified and easy to understand. My project is adapted to bootstrap 4, and everything worked perfectly. I will follow your tutorials, because they are very well explained. And yes, as I think others have said, please do something with the image, that it is too small, and we have to zoom in so we can see. Otherwise, just words of praise. Bravo

  • @alicekrassensky6717
    @alicekrassensky6717 2 ปีที่แล้ว +2

    This was a great video! You really helped me get a better understanding of how communication happens in a Razor pages app and how authentication and authorization fit in.

    • @SameerSaini
      @SameerSaini  2 ปีที่แล้ว

      Glad it helped you Alice, 👍

  • @gerardcuriel7880
    @gerardcuriel7880 2 ปีที่แล้ว +1

    Thank you very much , You have a very clear pronunciation and a very understandable explanation

  • @iandalrymple7255
    @iandalrymple7255 2 ปีที่แล้ว +2

    Thank you sir for taking the time. The explanation was solid and helped me learn more about CORE web apps of which I have little experience.

  • @shkurchenkod
    @shkurchenkod ปีที่แล้ว

    Thank you very much! Your video helped a lot in creating my project!

  • @e__-wm4th
    @e__-wm4th 2 ปีที่แล้ว +2

    thanks a lot man! this really helped me so much and thanks to the good explanation i think i undestand a lot more now

  • @frankenbeans6930
    @frankenbeans6930 2 ปีที่แล้ว

    Short and sweet. Very good introduction.

  • @OleksandrSe
    @OleksandrSe 2 ปีที่แล้ว +2

    Very nice, thank you kind stranger

    • @SameerSaini
      @SameerSaini  2 ปีที่แล้ว +1

      You're very welcome

  • @gurdeepgss
    @gurdeepgss 2 ปีที่แล้ว +2

    You have earned a subscriber Sameer!

  • @juankhanjar
    @juankhanjar 2 ปีที่แล้ว +1

    Thank you very much ,great boss

  • @TheBerdu
    @TheBerdu 2 ปีที่แล้ว

    Great Tutorial. Thank you. Just one question. The "remember me" part doesn't work at my side. What did/could I miss ?

  • @mustafa.celiktas
    @mustafa.celiktas ปีที่แล้ว

    Thank you so much for this awesome tutorial

  • @YarikASMRPOMIRCHIY
    @YarikASMRPOMIRCHIY 2 ปีที่แล้ว +1

    that's exactly what I needed, thanks a lot!

  • @NareshSinghalTheKing
    @NareshSinghalTheKing 3 ปีที่แล้ว +2

    I would say it was awesome !!!.....10/10

  • @jgaleanoc
    @jgaleanoc 2 ปีที่แล้ว

    Thank you! That was really helpful.
    I have a question, if the unregistered user can't have access to pages like "Index" or "Privacy", how could the registered user not have access to pages like "Register" or "Login" which should be only for registered/not logged in users?

  • @dengelkemier
    @dengelkemier 2 ปีที่แล้ว +2

    Would love to see an update that works with Visual Studio 2022 and Asp.Net Core 6!

    • @SameerSaini
      @SameerSaini  2 ปีที่แล้ว +1

      Yeah, was thinking about that too, with MVC this time

  • @timothymbogo5849
    @timothymbogo5849 2 ปีที่แล้ว +1

    Thank you very much Sir.

  • @nazihjrg3540
    @nazihjrg3540 2 ปีที่แล้ว +1

    thank you for the video, plz make the background for the IDE other than black, thank u

  • @ambeauda
    @ambeauda 2 ปีที่แล้ว +1

    Thank you for making it so easy. Can you do a video on how to create multiples roles with an admin? Thank you.

  • @mathusudhanan698
    @mathusudhanan698 2 ปีที่แล้ว

    Thats a great video

  • @fransiscusxaverius9621
    @fransiscusxaverius9621 11 หลายเดือนก่อน

    Thank you, It is very usefull

  • @bozaimuneerahmedkhan518
    @bozaimuneerahmedkhan518 2 ปีที่แล้ว

    Than you!! so much for that video, hatsoff for u explaination, for great work,please try to make a video on ASP.NET Core Identity - Authentication and Authorization in ASP.NET Core - Login and Registration using Angular 13!!

  • @shitalsarode1723
    @shitalsarode1723 ปีที่แล้ว +1

    I don't have startup file bcoz version is latest so how and where to write the code that you are written in startup

  • @sparten951
    @sparten951 3 ปีที่แล้ว

    Thank you so much good man. Wish you where my university lecturer

  • @nasirishaq7332
    @nasirishaq7332 ปีที่แล้ว

    dear sameer kindly make a video on how to add identity exsisting project

  • @benedictnino4672
    @benedictnino4672 ปีที่แล้ว

    Thank you for the video Sir, it's help me to understand about feature in .NET. May i ask how to get the username in Index (after login) in the start of video?

  • @anlorhan3227
    @anlorhan3227 2 ปีที่แล้ว +1

    Thank you so much .

    • @SameerSaini
      @SameerSaini  2 ปีที่แล้ว +1

      You're most welcome

  • @fahimeabouhamze6618
    @fahimeabouhamze6618 3 ปีที่แล้ว

    Thank you . I watch it and learn a lot

  • @haribabu499
    @haribabu499 3 ปีที่แล้ว +1

    helpful

  • @ThorStore
    @ThorStore 2 ปีที่แล้ว +1

    Amazing video but I have a question, would you be able to not include Migrations if we are using Azure Sql Server?

    • @SameerSaini
      @SameerSaini  2 ปีที่แล้ว +1

      MIgrations work the same for Azure SQL server too, it needs a connection to a database and the rest of the fundamentals of the migrations remains the same

  • @huseyincuma9523
    @huseyincuma9523 2 ปีที่แล้ว

    thanks for the video . but i hoped i could find also about role operations anyway thanks again

  • @imranjalali
    @imranjalali 3 ปีที่แล้ว +2

    Thanks can you please share the code you have created in this tutorial

  • @sampaioin
    @sampaioin 3 ปีที่แล้ว +1

    Thank you very much!

  • @nandinis1076
    @nandinis1076 ปีที่แล้ว

    Thanks for this helpful video but if we are using SQLite Database How can we implement Context class using theses View Models?

  • @andreea-cristinacaragea4227
    @andreea-cristinacaragea4227 11 หลายเดือนก่อน

    Hello, does this work with MVC Project and Authentification Type Individual Account? Thank you really much!

  • @vincentarendaying2024
    @vincentarendaying2024 ปีที่แล้ว

    Thank you, how about multiple roles with an admin?

  • @TheRazzMaTazzBand
    @TheRazzMaTazzBand 2 ปีที่แล้ว +1

    Hi Sameer, This was an awesome video. Thanks a lot for this. However I need to add a few custom fields like First Name and Last Name and was wondering if you could let me know how to do that. Thanks in advance and much appreciated. Your the best....:-)

  • @mosescodes3677
    @mosescodes3677 3 ปีที่แล้ว +1

    Thank you so much

  • @RapAz17
    @RapAz17 2 ปีที่แล้ว

    thank you sir! but how to show use user info in view side? (for example: i want to show create a page that users are able to see their information)

  • @aliassad460
    @aliassad460 5 วันที่ผ่านมา

    Life saver

  • @ms.sufiya9353
    @ms.sufiya9353 2 ปีที่แล้ว +2

    @Sameer Saini
    Hey i implemented as you did in the whole video . I create a connection as you did for database but no table is created in database just like yours . Can u help me with it ?? .
    I really need database for the further application work .😔😔

    • @SameerSaini
      @SameerSaini  2 ปีที่แล้ว +1

      Did you run the EF core migrations?

    • @ms.sufiya9353
      @ms.sufiya9353 2 ปีที่แล้ว

      @@SameerSaini yes i have
      When u create connection . I also do the same but no affect there .

    • @ms.sufiya9353
      @ms.sufiya9353 2 ปีที่แล้ว

      Just like yours project has created so many tables but mine nothing .
      I think due to whixh my login also not working

    • @ciorcagaby1527
      @ciorcagaby1527 2 ปีที่แล้ว +1

      @@ms.sufiya9353 Delete the database. And give the command again: Initial-created in PM Console. After you give the command: Update-database, and only after this command it wheel you appear the tables.

    • @keenancollison4740
      @keenancollison4740 ปีที่แล้ว

      I'm stuck. I do the create user part but then the textboxes clear and nothing happens. no data is added to table

  • @himanshuk6199
    @himanshuk6199 3 ปีที่แล้ว +1

    Also when user registers a confirmation email must be sent to the user, how can we go about it?

  • @himasri1216
    @himasri1216 ปีที่แล้ว

    Sir, can I follow this tutorial for .NET 6?

  • @shailendratiwari5714
    @shailendratiwari5714 3 ปีที่แล้ว +1

    Wow sir ji namaskar

  • @صلواعلىمحمد-ظ1ف
    @صلواعلىمحمد-ظ1ف 2 ปีที่แล้ว

    Thanks alott🥰

  • @francoisprabu6312
    @francoisprabu6312 ปีที่แล้ว

    How to add other columns?

  • @mukhammadnajimov8440
    @mukhammadnajimov8440 2 ปีที่แล้ว

    Thank you so much for detailed explanation tutorial
    and one thing also
    Could you make ASP.NET Core Identity - Authentication and Authorization in ASP.NET Core 6.0
    Login and Register
    Thank you in advance
    🙂

  • @anirudhr3145
    @anirudhr3145 2 ปีที่แล้ว

    How to create a registration and login form using Web API which contains user database and entity framework model

  • @ManaliPawade
    @ManaliPawade ปีที่แล้ว

    Hello Sameer , Thans for this tutorial. I am stuck because of the following error , Would be great if you can help me resolve this . "InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Microsoft.AspNetCore.Identity.IdentityUser]' while attempting to activate 'Aspnet_Core_Identity.Pages.RegisterModel'."

  • @moldovandorin6187
    @moldovandorin6187 2 ปีที่แล้ว

    SignInManager.IsSignedIn(User) ... where is User coming from?

  • @prajjowldahal8959
    @prajjowldahal8959 2 ปีที่แล้ว

    how start up .cs comes in vs code in my vs code it doesnot found

  • @mettlus
    @mettlus 2 ปีที่แล้ว

    What about Admin role?

  • @pranjaldeshmukh6093
    @pranjaldeshmukh6093 7 หลายเดือนก่อน

    but if I want to do roles based then?

  • @jsatti891
    @jsatti891 3 ปีที่แล้ว +1

    Hi. My NuGet package does not show Microsoft.Entity..... Any suggestion. Thanks

    • @SameerSaini
      @SameerSaini  3 ปีที่แล้ว +1

      Are you on the browse tab of the nuget packages? Are you using a proxy or something? Try gking to nuget website directly to see if you can access that?

  • @jimbaldivino4420
    @jimbaldivino4420 2 ปีที่แล้ว

    The Aspauthnet in the database was already there or you just add it?, because when i connect into the server my table folder was empty

    • @SameerSaini
      @SameerSaini  2 ปีที่แล้ว

      It gets added as part of entity framework migrations

  • @sahil_sao
    @sahil_sao 2 ปีที่แล้ว

    i followed this but why the startup.cs is not being created on .net 6

  • @TheJojoboy12
    @TheJojoboy12 2 ปีที่แล้ว

    Amazing video thanks so much

  • @sameersrivastava3194
    @sameersrivastava3194 2 ปีที่แล้ว +1

    hello sir while adding the first migration it is showing Value cannot be null. (Parameter 'connectionString')
    Please help

    • @SameerSaini
      @SameerSaini  2 ปีที่แล้ว +3

      This is because you have not added the connectionstring in tha appsettings file

  • @MuhendisKadir
    @MuhendisKadir 2 ปีที่แล้ว

    I have migration errors why? An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: Failed to load configuration from file ...\appsettings.json'.

  • @thechosenones2565
    @thechosenones2565 2 ปีที่แล้ว

    i'm facing so much trouble when ever i add new project there is no startup file even entity frame work does not comes when i press ctrl+dot

  • @manindersaini3324
    @manindersaini3324 3 ปีที่แล้ว +2

    Hii Sameer Sir, if we want to convert this into Asp.Net Core Web Api then how we can do that please reply asap

    • @SameerSaini
      @SameerSaini  3 ปีที่แล้ว

      Hi Maninder, We cannot convert this to a Web API as it is. An Authentication API also called an Identity API is a different kind of code in which the API produces a JWT token with all sorts of stuff like subjects, claims and permissions etc. In the next few days, I will try and create a tutorial for that as well :)

  • @rumanshaikh7120
    @rumanshaikh7120 3 ปีที่แล้ว +2

    I get this Error(Format of the initialization string does not conform to specification starting at index 0.) when i type the command "Update-Database" .Please tell me how to fix it?

    • @SameerSaini
      @SameerSaini  3 ปีที่แล้ว +1

      Are you using Update-Database aith or without the double quotes?
      Don't use quotes with the Update-Database command

    • @bhargavsaijavvaji2535
      @bhargavsaijavvaji2535 ปีที่แล้ว

      @@SameerSaini Hi sammer, but u don't say how to create in-database tables. anyone are you add the database table inside? please help us sameer.

  • @keenancollison4740
    @keenancollison4740 ปีที่แล้ว

    Help please. I got to the part when you create a user but my textboxes just clear when the password and confirm password is correct. It's not adding to the database

  • @pacificpharmaceuticals4311
    @pacificpharmaceuticals4311 2 ปีที่แล้ว

    Please Need Support when I click of register no response generate ? what I do?

  • @saritalad8923
    @saritalad8923 2 ปีที่แล้ว

    Can U tell why my LogOut Button does not appear ,after sucessful login ?

  • @krishramakrishna9567
    @krishramakrishna9567 4 หลายเดือนก่อน

    Where to write code to load drop-down immediately with application loads

  • @krstylerein9946
    @krstylerein9946 2 ปีที่แล้ว

    do I need to create database AspnetAuth before all of this in sql server?or it will create automatically?

    • @SameerSaini
      @SameerSaini  2 ปีที่แล้ว +1

      It will create it automatically

    • @krstylerein9946
      @krstylerein9946 2 ปีที่แล้ว

      @@SameerSaini in migration creating part, it says sometimes failed or unable to create an object. please help me

  • @mosescodes3677
    @mosescodes3677 3 ปีที่แล้ว +1

    How to do it on asp.net Mvc? same way? Thank you

  • @ramsameer1636
    @ramsameer1636 2 ปีที่แล้ว

    sir can you please do a video on user login with JWT Token authentication and authorization then display user name like "Hi " in angular 13 asp.net core

  • @wajeehamaqsood3296
    @wajeehamaqsood3296 2 ปีที่แล้ว +1

    Sir can you please make video on email verification and forget password?

    • @SameerSaini
      @SameerSaini  2 ปีที่แล้ว

      will try to make that ASAP

  • @shubhammaini3921
    @shubhammaini3921 ปีที่แล้ว

    when i hit /register said page not found

  • @izatemir
    @izatemir 2 ปีที่แล้ว

    How to format the html?

  • @Prasadrkmca
    @Prasadrkmca 2 ปีที่แล้ว +1

    Font size is hardly visible anything.

    • @SameerSaini
      @SameerSaini  2 ปีที่แล้ว +1

      I agree to that Prasad, I am planning to make another one using ASP.NET 6 soon.

  • @abdechafineji8782
    @abdechafineji8782 2 ปีที่แล้ว

    The command Update-database won't working , I've got this error : a network-related or instance-specific error occurred

  • @Rundtj45
    @Rundtj45 ปีที่แล้ว

    HI sir
    When I tried to install (Microsoft.AspNetCore.Identity.EntityFrameworkCore) I fased to this error {Install microsoft.aspnetcore.identity.identity.EntityFrameworkCore failed Additional information. Package restore failed. Rolling back package changes for (PROJECT NAME)} what shoul i do ?

  • @codingwithkrups1828
    @codingwithkrups1828 ปีที่แล้ว

    STARTUP.CS FILE NOT GENERATED MY VISUAL STUDIO IS 2022 FRAME WORK IS 6 WHAT IS THE REASON BEHIND THIS additional information package restore failed rolling back package change for demoproject

  • @babug5514
    @babug5514 2 ปีที่แล้ว

    Sql Server Table?

  • @rakeshjena895
    @rakeshjena895 ปีที่แล้ว

    Logout not working even after created all the functionality for that

  • @bhavyakumarpanchotiya8254
    @bhavyakumarpanchotiya8254 ปีที่แล้ว

    how can i get this code ?

  • @codingislife6387
    @codingislife6387 2 ปีที่แล้ว

    I am only Getting View of Register.htmlCss no CS File.... Common its .CS Should be in Controller. Your Project doesn't have Controller folder????

  • @aravindhravula3911
    @aravindhravula3911 2 ปีที่แล้ว

    bro plz increase the Font size and reupload it plz😊

  • @pavansiddharthareddy1707
    @pavansiddharthareddy1707 2 ปีที่แล้ว

    Can anyone replay how to display details of user after logged in

  • @himanshuk6199
    @himanshuk6199 3 ปีที่แล้ว +1

    Sir please help us create forgot password and change password pages also

    • @SameerSaini
      @SameerSaini  3 ปีที่แล้ว

      Sure, I will work on these videos.

  • @arindamghosh636
    @arindamghosh636 3 ปีที่แล้ว

    Why your font is that small? Don't put too much pressure on your eyes.

  • @abdullah557
    @abdullah557 2 ปีที่แล้ว

    guys can someone help ,its giving me this error when I try to update the database server " A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"

  • @kadyahmed8974
    @kadyahmed8974 2 ปีที่แล้ว +1

    Please can u upload source code?

  • @alasdairliamhazen4898
    @alasdairliamhazen4898 ปีที่แล้ว

    I've tried this 5 times, from start to finish, using all the same labels right down to the database name. It FAILS to Login. It stops at public async Task OnpostAsyn(string returnUrl = null) and goes straight to return Page(). It never does a check. ModelState is NEVER valid under ANY conditions. All well and good to have a great video, but in the end it HAS to work - and it doesn't.

    • @alasdairliamhazen4898
      @alasdairliamhazen4898 ปีที่แล้ว

      Answer.... In version 6.0 and 7.0 you MUST have a ? at this point. public async Task OnPostAsync(string? returnUrl = null) -- Mind you. I had to play with it many times, so there may be more small differences! Great Video but DEFINITELY needs to be updated!

  • @softwet4341
    @softwet4341 ปีที่แล้ว +1

    The entire Internet is based on Indians

    • @SameerSaini
      @SameerSaini  ปีที่แล้ว

      Isn't that right! Thanks for specifying that fact :)

    • @SameerSaini
      @SameerSaini  ปีที่แล้ว

      Also you are welcome! Hope you learn something from the video.