ASP.NET Identity - User Registration, Login and Log-out

Поделиться
HTML-код
  • Опубликовано: 16 сен 2024
  • In this tutorial, we will cover the implementation of Identity service in ASP.NET MVC application using framework 6.0.
    You can secure your application data by providing complete login and user registration functionality using the Identity service provided by Microsoft.
    Identity service also provides lots of other functionality that enable developers to save time on coding for complete user management module. It include services like User Registration, Login, Log-out, Roles, Claims, Generating Token, User confirmation, Sending Email etc
    This tutorials covers the first aspect of security i.e. user registration, login and log-out.
    Thanks for visiting Digital TechJoint Channel and we wish all the very Best Learning experience .
    Please do Subscribe, Share and like our videos
    Below are the links of Video that will help further in learning ASP.NET.
    Good Luck !!! Keep Learning
    How To Deploy ASP.NET Appliction on AWS Cloud Platform
    • How to Deploy ASP.NET ...
    How To Apply Free Bootstrap in ASP.NET Application
    • How To Apply Free Boot...
    Razor Pages Complete Course Dotnet Framework 6.0
    • Complete Course on Raz...
    Complete Course in ASP.NET MVC 6.0
    • Learn ASP.NET MVC (.NE...
    How to Setup Amazon AWS Free Account
    • How to Setup Amazon AW...
    AWS Secure Root User Using Identity Access Management Service (IAM)
    • AWS Secure Root User U...
    Intro To ASP.net CORE
    • How To Create Web API ...
    How To Upload Images in Database ASP.NET Razor Pages
    • Razor Pages - How To U...
    Dependency Injection Explained
    • How To Implement Depen...
    ASP.net CORE Using ADO.net
    • How to use ADO.NET in ...
    Repository Pattern Explained
    • How To Implement Repos...
    Getting Started with Razor
    • Getting Started with R...
    Working with Images
    • How to Upload Images U...
    Razor Page Short Videos Playlist
    • Learn ASP.NET Razor Pa...
    Complete ASPNET MVC Course
    • Learn ASP.NET MVC (.NE...
    AWS S3
    • Playlist

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

  • @juraci73
    @juraci73 Год назад +6

    when you did inserting the route map it helped me to solve my problem, that's what i was looking for, thanks. Sao Paulo - Brazil

  • @Big_Dai
    @Big_Dai Год назад +3

    Added security changes starts @19:13 (after a basic page is created)
    EDIT: Pretty useful and straightforward. Thanks.

  • @ryuzaki6865
    @ryuzaki6865 Год назад +3

    Definitely one of the best video I've seen on this topic, you've earned a new subscriber.

  • @everforexcanada5663
    @everforexcanada5663 Год назад +14

    Microsoft really made things too complicated, added too much non scenes stuff in the backend even for a simple login page. I don't know if it's good for more productive or not. but your vid is a good though

  • @terenceriauka194
    @terenceriauka194 Год назад +2

    Great tutorial on this topic - thanks for sharing. I selected this video for help with Authentication and Identity with a Blazor Server app but, like with all good instructors, you helped me learn much more. You have a new subscriber. Look forward to watching more of your videos.

  • @Lima_1977
    @Lima_1977 Год назад +3

    Amazing............... Top Show Congratulations from Brazil

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

      Greatings from India 💌 . Thank You So much for your lovely comments !!! Really Appreciate

  • @bitcoinbunker
    @bitcoinbunker 11 месяцев назад +3

    Great video sir, thanks for taking the time to create it. I'll definitely be working through some of your other videos too.

    • @DigitalTECHJOINT
      @DigitalTECHJOINT  11 месяцев назад +1

      Thanks for your lovely & motivational comment. Please do share our channel link with your friends and colleagues to help us reach more of our dev community. Thanks

    • @bitcoinbunker
      @bitcoinbunker 11 месяцев назад

      Thanks for taking the time to reply to me @@DigitalTECHJOINT One of my friends is already now subscribed and following your work. I'll be sure to continue to recommend you. Are you planning to expand on the application that we built in these two videos? The reason I ask is I would like to use some extra data that I collected in the 'Sales Lead' table to produce a simple line chart on the page. Would be amazing if you had already covered this somehow. Thanks again!

  • @rajeshyandigeri1354
    @rajeshyandigeri1354 Год назад +5

    Very good explanation 🎉🎉

  • @SimplefaceLtd
    @SimplefaceLtd Год назад +3

    Thank you so much. This is one of the best Tutorials I have ever seen,

  • @iyadisleem2574
    @iyadisleem2574 Год назад +2

    Thank brother, this vidoe was very helpful, you've earned my subscription.

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

      Thank You So much !!! more such informative videos will be released on weekly basis . Thanks once again

  • @kristamariemontebon2636
    @kristamariemontebon2636 10 месяцев назад +2

    Very good video

  • @muhammadali-lt4uw
    @muhammadali-lt4uw Год назад +4

    at 13:00 use TrustServerCertificate=True in the connection string

  • @ronaldjohnson4470
    @ronaldjohnson4470 8 месяцев назад +1

    Awesome tutorial, thank you.

  • @aizakhan-i3p
    @aizakhan-i3p 10 месяцев назад +2

    thank for sharing

  • @prashantaganguly
    @prashantaganguly 11 месяцев назад +2

    Nice video. Good explanation and specific to the point

  • @mynameiskhalid3442
    @mynameiskhalid3442 10 месяцев назад +2

    Thank you sir

  • @user-vm4vk4rf1x
    @user-vm4vk4rf1x 4 месяца назад +1

    thank you sir.i am from Afganistan

    • @DigitalTECHJOINT
      @DigitalTECHJOINT  4 месяца назад

      You are welcome and thanks for visiting Digital TechJoint !!

  • @MdShuvo-ok6qe
    @MdShuvo-ok6qe Год назад +2

    Very nice tutorial sir thanks

  • @meoconhoccode
    @meoconhoccode Год назад +1

    goood jobs guys

  • @edabelge6660
    @edabelge6660 Год назад +2

    thx a lot! good job :)

  • @blacksky6853
    @blacksky6853 9 месяцев назад +1

    this is what i wantedthanks but dont u have any chanel or source that u can share ur codes or this project to us?

  • @afiatalib1681
    @afiatalib1681 10 месяцев назад +1

    Nice

  • @jothikasountharasinge2335
    @jothikasountharasinge2335 5 месяцев назад +1

    Bravo

  • @dorotaimaciejp.1369
    @dorotaimaciejp.1369 Год назад +2

    Excellent!

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

      Thank you for your lovely comments. Do share our channel link with your friends & colleagues to help us grow our network. Thanks

  • @syedaf8027
    @syedaf8027 3 месяца назад

    Thanks for sharing! Would it work for Database first approach?

  • @talhajobayer8666
    @talhajobayer8666 11 месяцев назад +1

    InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1[BloodyHelp.Models.UsersEntity]' while attempting to activate 'BloodyHelp.Areas.Identity.Pages.Account.RegisterModel'.
    it is showing if i click on registor button on 1st attempt. what to do?

  • @theislamiczone178
    @theislamiczone178 6 месяцев назад +1

    love it , subscribe your channel for more updates about .Net. really love your teaching method.

    • @DigitalTECHJOINT
      @DigitalTECHJOINT  6 месяцев назад +1

      Thank You So much for your lovely comments. We will try our level best to upload more video tutorial on .NET.

  • @user-yn7rm5di7r
    @user-yn7rm5di7r 8 месяцев назад +1

    do the steps change related to the db connection and interaction, if I'm using SSMS SQL SERVER MANAGEMENT STUDIO.

  • @spellman33
    @spellman33 7 месяцев назад +1

    Thanks

  • @Tory_Rainman
    @Tory_Rainman Год назад +2

    Hi on 12:50 when i run "Update-datbase" i get this SSL error "A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)"

    • @Tory_Rainman
      @Tory_Rainman Год назад +3

      Wait i got it. incase anyone gets stuck on the same problem just set your TrustServerCertificate=True in the connection string

  • @abbasishaq6554
    @abbasishaq6554 Год назад +6

    Sir when will you release the next part

    • @DigitalTECHJOINT
      @DigitalTECHJOINT  Год назад +1

      Hey Abbas,
      This week for sure . Make sure you have subscribed and clicked the bell icon to receive notification once we upload videos. Thanks

  • @user-mq7de8nr6t
    @user-mq7de8nr6t 7 месяцев назад

    Hello Sir I need assistant in my appsetting.json, when I input the connectionStrings in the json file it tells that "only one top-level item is allowed in JSON document"

  • @davidjackson148
    @davidjackson148 Год назад +1

    not a lot pf use you dont show the actual code that does the login and register which is quite important

  • @malikhaouche3058
    @malikhaouche3058 Год назад +2

    Hi,Does anyone know how to change the password hashing method?

  • @p.j.8698
    @p.j.8698 10 месяцев назад +1

    a logged in user can still see other users data which is not fine sercurity wise. this needs an update or an explanation on what to do

  • @mominstatus8499
    @mominstatus8499 9 месяцев назад +1

    Thanks❤

  • @shadowwolf12398
    @shadowwolf12398 5 месяцев назад

    19:15 For adding the actual login system

  • @ManishSingh-zd5go
    @ManishSingh-zd5go Год назад +1

    Thaks a lot

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

      Thank You !!! Please keep visiting our channel and share with your friends/colleagues and help us grow our network. thank you

  • @AmanAnsari-u8z
    @AmanAnsari-u8z 6 месяцев назад

    #Question how the authorize know that if user is not logged in or authorize than redirect user to the login page ? please answer.

  • @karthikeyanp9223
    @karthikeyanp9223 Год назад +2

    I am getting this error . CREATE INDEX failed because the following SET options have incorrect settings: 'NUMERIC_ROUNDABORT'. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or filtered indexes and/or query notifications and/or XML data type methods and/or spatial index operations.

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

      Hi, when are you getting this exception ? During migration ?

  • @nateshstealth350rider3
    @nateshstealth350rider3 Год назад +1

    even after pressing logout the button is present @34:00 can you help me out?

  • @josephmulholland6135
    @josephmulholland6135 Год назад +1

    Implemented this into my project however im running into a 404 error when loading the pages. Does anyone understand how i can fix this?

  • @buzzly108
    @buzzly108 Год назад +2

    I'm still trying to wrap my head around all of this, but I'm curious how you handle windows authentication. I have successfully implemented an app with windows auth, but I don't know how to implement role-based authorization. Your authorization video is fantastic, but it is based on login registration -- how do I implement the Identity model in conjunction with Windows Authentication?

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

      You need video on ASP.NET Active DIrectory (AD) authentication ?? Please confirm ?

    • @LivingStoneRoxks
      @LivingStoneRoxks Год назад +1

      @@DigitalTECHJOINT yes

    • @DigitalTECHJOINT
      @DigitalTECHJOINT  Год назад +1

      @@LivingStoneRoxks Sure will release tutorial soon. Thanks for visiting DTJ

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

    Can any one please suggest to create registration page after register record should display in grid

  • @thelobitoxd9170
    @thelobitoxd9170 Год назад +1

    Subscribed friend, waiting for the next video

    • @DigitalTECHJOINT
      @DigitalTECHJOINT  Год назад +1

      Yes. Next Video is on Identity Roles and Provide Access based on Roles. Stay Tunned

    • @DigitalTECHJOINT
      @DigitalTECHJOINT  Год назад +1

      Done. Released video on Authorization based on Roles .

  • @Gyantech880
    @Gyantech880 Год назад +1

    16min i facing error pakage restorstion failed

  • @Bittu2682
    @Bittu2682 11 месяцев назад +1

    in the time frame 25:58 the code you writedown is show half. i cant complate this program without this so please show me full code thank you..

    • @DigitalTECHJOINT
      @DigitalTECHJOINT  11 месяцев назад

      Please drop me email and we will share across the code. thanks

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

    which approach you are using? this is not EF database 1st approach., in that model classes are genreated automaticallly.,

  • @faizanaeem1682
    @faizanaeem1682 8 месяцев назад +1

    tried again and again but the packages have not been installed
    now how to get it install?

    • @DigitalTECHJOINT
      @DigitalTECHJOINT  8 месяцев назад

      what is the error message you are getting while installing the package also let us know your Visual Studio version. Hope you are installing the packages shown in the video. Please email us your error details. thanks

  • @emelsalieva8412
    @emelsalieva8412 Год назад +1

    I have question,what to to when I use tools and nuget packages manager, I wrote update-database but it give me something in red “a connection was successfully established with the server,but then an error occurred during the login process. etc” and my table un sql didn’t appear 😢

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

      Are you refering to the migration command that did not work properly ? Suggest if the migration folder is created then delete it and make sure the connection string declared in appsetting.json is correct and then fire teh migration command again. ..(There is some issue in the connection to db that's why tables are not getting created ) Hope this helps. thanks

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

      You need to have [Integrated Security=true;TrustServerCertificate=True" ], if you got the below error:
      "A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)"

  • @talhajobayer8666
    @talhajobayer8666 11 месяцев назад +1

    can you show me how to add a search button in this?

    • @DigitalTECHJOINT
      @DigitalTECHJOINT  11 месяцев назад

      Sure, You can use the Application db Context obj and call the Find method passing the search parameter . Something like this var matches = from m in db.Customers
      where m.Name.Contains(SearchParameter) and for single parameter search something like this
      var products = context.Prducts.Where(p => p.CategoryId == 1 && p.UnitsInStock < 10);
      Hope this helps

    • @talhajobayer8666
      @talhajobayer8666 11 месяцев назад

      @@DigitalTECHJOINT i tried but it is showing errors..can you suggest me a video tutorial on this topic?

  • @rodrigo-tj1gf
    @rodrigo-tj1gf Год назад +1

    is there a way to do that without identity??? cz it literallly isnt possible to scaffold it for me

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

      Yes. You can create your own custom login. I mean you can create database tables to manage Users Logins .. But then you will end up doing all by yourself .. When I say all means - Authentications, Authorization, Security, etc etc

  • @shahabjoon201
    @shahabjoon201 Год назад +1

    Perfect

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

    In database he didn't create any table. How he get

  • @fired_developer
    @fired_developer Год назад +1

    Nice explanation, bhai thoda louder voice. 👍

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

      Thanks for the comments. sure next time will increase the volumne of mic.

  • @gavansebastian
    @gavansebastian Год назад +1

    Hello, I m getting an error when trying to create the scaffolded item for identity (the part from 22:51).

    • @gavansebastian
      @gavansebastian Год назад +1

      The error message is "There was an error running the selected code generator:
      'Package restore failed, Rolling back package changes for 'ProjectName'.'".

    • @Big_Dai
      @Big_Dai Год назад +2

      @@gavansebastian Had the same issue.
      1. Just delete all Dependencies you have (Core SQLServer, Core Tools, Entity Framework, etc).
      2. Try scaffolding again. This will install all the dependencies again, just with the correct version.

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

      @@Big_Dai Thanks a lot!

    • @fired_developer
      @fired_developer Год назад +1

      Yes, its a package issue, it can also cause if you have more packages of similar feature, for example, you have installed Aspnetcore and Aspnetcore.EntityFramework and Aspnet.EntityFrameworkcore etc. so there is a confusion while building the code. hence , you should onle have the required package for scaffolding and not the others. It happened with me once too

  • @mohamedabdullah423
    @mohamedabdullah423 8 месяцев назад +1

    thank u bro could u share the source code?

  • @joseoliveira9026
    @joseoliveira9026 Год назад +1

    Hi! have someone published this solution to Azure successfully? Not working in azure for me.

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

      We have video tutorials in our channel for ASP.NET and AWS however let me plan something on your request and release authentication for MS Azure .. thanks for visting Digital TechJoint !!!

  • @akshaygiri2900
    @akshaygiri2900 Год назад +1

    sir all dependencies are version 6 but still code generator error rollback changes in package shown while scafolding controller help

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

      share me the exact error on email. digitaltechjoint@gmail.com

    • @akshaygiri2900
      @akshaygiri2900 Год назад +1

      @@DigitalTECHJOINT sir thanks for reply to me error solved and due to different version dependency that errors occurred

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

      @@akshaygiri2900 Happy to know that. Keep programming and do share our channel with your collegues and friends. Thanks

  • @AbdallaWalidElemam
    @AbdallaWalidElemam 3 месяца назад +2

    it is work in .NET 8 ?

    • @DigitalTECHJOINT
      @DigitalTECHJOINT  3 месяца назад

      Yes. It will but please select the latest version from Nuget Package Manager . Thanks

    • @ItsBrockBaby
      @ItsBrockBaby 2 месяца назад

      Mine doesn't want to install 😢help

  • @aliensoul7600
    @aliensoul7600 11 месяцев назад +1

    migration is big head ache . If it's done then whole project is done 🤕

    • @DigitalTECHJOINT
      @DigitalTECHJOINT  11 месяцев назад

      Yes. But it's makes development easy also if you face issue in migration then simplify delete the migration folder and re-run the migrations command - that should sort most of you unexpected issues during migration also you have option to rollback the migration done earlier .. Hope that helps. thank you for visiting Digital TechJoint - Please do visit our Playlist - Programming Tricks & Tips. thanks

  • @khalednabilaly
    @khalednabilaly Год назад +1

    thank you ,could you please share source code

  • @kshitizmishra-u1b
    @kshitizmishra-u1b Год назад +1

    how can i share this page with my friends?

  • @ronitavlogs
    @ronitavlogs Год назад +2

    Very nice video

  • @ozandinc7985
    @ozandinc7985 Год назад +1

    Thank you sir