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

  Рет қаралды 107,770

Digital TechJoint

Digital TechJoint

Жыл бұрын

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 Жыл бұрын
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 Жыл бұрын
Added security changes starts @19:13 (after a basic page is created) EDIT: Pretty useful and straightforward. Thanks.
@DigitalTECHJOINT
@DigitalTECHJOINT Жыл бұрын
Thank You
@terenceriauka194
@terenceriauka194 Жыл бұрын
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.
@ryuzaki6865
@ryuzaki6865 Жыл бұрын
Definitely one of the best video I've seen on this topic, you've earned a new subscriber.
@everforexcanada5663
@everforexcanada5663 Жыл бұрын
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
@marvellousgboun6068
@marvellousgboun6068 Ай бұрын
its really tiring
@ronaldjohnson4470
@ronaldjohnson4470 6 ай бұрын
Awesome tutorial, thank you.
@SimplefaceLtd
@SimplefaceLtd Жыл бұрын
Thank you so much. This is one of the best Tutorials I have ever seen,
@rajeshyandigeri1354
@rajeshyandigeri1354 Жыл бұрын
Very good explanation 🎉🎉
@user-jx6hp3rs8k
@user-jx6hp3rs8k 9 ай бұрын
thank for sharing
@edabelge6660
@edabelge6660 Жыл бұрын
thx a lot! good job :)
@kristamariemontebon2636
@kristamariemontebon2636 9 ай бұрын
Very good video
@bitcoinbunker
@bitcoinbunker 10 ай бұрын
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 10 ай бұрын
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 10 ай бұрын
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!
@meoconhoccode
@meoconhoccode Жыл бұрын
goood jobs guys
@iyadisleem2574
@iyadisleem2574 Жыл бұрын
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
@Lima_1977
@Lima_1977 Жыл бұрын
Amazing............... Top Show Congratulations from Brazil
@DigitalTECHJOINT
@DigitalTECHJOINT Жыл бұрын
Greatings from India 💌 . Thank You So much for your lovely comments !!! Really Appreciate
@muhammadali-lt4uw
@muhammadali-lt4uw Жыл бұрын
at 13:00 use TrustServerCertificate=True in the connection string
@prashantaganguly
@prashantaganguly 9 ай бұрын
Nice video. Good explanation and specific to the point
@DigitalTECHJOINT
@DigitalTECHJOINT 9 ай бұрын
Glad you liked it
@dorotaimaciejp.1369
@dorotaimaciejp.1369 Жыл бұрын
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
@MdShuvo-ok6qe
@MdShuvo-ok6qe Жыл бұрын
Very nice tutorial sir thanks
@DigitalTECHJOINT
@DigitalTECHJOINT Жыл бұрын
Thank You
@jothikasountharasinge2335
@jothikasountharasinge2335 4 ай бұрын
Bravo
@mominstatus8499
@mominstatus8499 8 ай бұрын
Thanks❤
@josephmulholland6135
@josephmulholland6135 Жыл бұрын
Implemented this into my project however im running into a 404 error when loading the pages. Does anyone understand how i can fix this?
@afiatalib1681
@afiatalib1681 9 ай бұрын
Nice
@talhajobayer8666
@talhajobayer8666 10 ай бұрын
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?
@user-vm4vk4rf1x
@user-vm4vk4rf1x 3 ай бұрын
thank you sir.i am from Afganistan
@DigitalTECHJOINT
@DigitalTECHJOINT 2 ай бұрын
You are welcome and thanks for visiting Digital TechJoint !!
@spellman33
@spellman33 6 ай бұрын
Thanks
@syedaf8027
@syedaf8027 2 ай бұрын
Thanks for sharing! Would it work for Database first approach?
@blacksky6853
@blacksky6853 8 ай бұрын
this is what i wantedthanks but dont u have any chanel or source that u can share ur codes or this project to us?
@mynameiskhalid3442
@mynameiskhalid3442 9 ай бұрын
Thank you sir
@DigitalTECHJOINT
@DigitalTECHJOINT 9 ай бұрын
Welcome
@ronitavlogs
@ronitavlogs Жыл бұрын
Very nice video
@DigitalTECHJOINT
@DigitalTECHJOINT Жыл бұрын
So nice
@ManishSingh-zd5go
@ManishSingh-zd5go Жыл бұрын
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
@theislamiczone178
@theislamiczone178 4 ай бұрын
love it , subscribe your channel for more updates about .Net. really love your teaching method.
@DigitalTECHJOINT
@DigitalTECHJOINT 4 ай бұрын
Thank You So much for your lovely comments. We will try our level best to upload more video tutorial on .NET.
@nateshstealth350rider3
@nateshstealth350rider3 Жыл бұрын
even after pressing logout the button is present @34:00 can you help me out?
@karthikeyanp9223
@karthikeyanp9223 Жыл бұрын
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 ?
@buzzly108
@buzzly108 Жыл бұрын
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 Жыл бұрын
@@DigitalTECHJOINT yes
@DigitalTECHJOINT
@DigitalTECHJOINT Жыл бұрын
@@LivingStoneRoxks Sure will release tutorial soon. Thanks for visiting DTJ
@malikhaouche3058
@malikhaouche3058 Жыл бұрын
Hi,Does anyone know how to change the password hashing method?
@poojithapalagani6352
@poojithapalagani6352 6 ай бұрын
Can any one please suggest to create registration page after register record should display in grid
@Tory_Rainman
@Tory_Rainman Жыл бұрын
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 Жыл бұрын
Wait i got it. incase anyone gets stuck on the same problem just set your TrustServerCertificate=True in the connection string
@user-yn7rm5di7r
@user-yn7rm5di7r 6 ай бұрын
do the steps change related to the db connection and interaction, if I'm using SSMS SQL SERVER MANAGEMENT STUDIO.
@DigitalTECHJOINT
@DigitalTECHJOINT 6 ай бұрын
No it does not
@davidjackson148
@davidjackson148 Жыл бұрын
not a lot pf use you dont show the actual code that does the login and register which is quite important
@shahabjoon201
@shahabjoon201 Жыл бұрын
Perfect
@vishaljadhav7604
@vishaljadhav7604 Жыл бұрын
which approach you are using? this is not EF database 1st approach., in that model classes are genreated automaticallly.,
@user-mq7de8nr6t
@user-mq7de8nr6t 5 ай бұрын
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"
@thelobitoxd9170
@thelobitoxd9170 Жыл бұрын
Subscribed friend, waiting for the next video
@DigitalTECHJOINT
@DigitalTECHJOINT Жыл бұрын
Yes. Next Video is on Identity Roles and Provide Access based on Roles. Stay Tunned
@DigitalTECHJOINT
@DigitalTECHJOINT Жыл бұрын
Done. Released video on Authorization based on Roles .
@p.j.8698
@p.j.8698 8 ай бұрын
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
@shadowwolf12398
@shadowwolf12398 3 ай бұрын
19:15 For adding the actual login system
@user-kl9vw7ok1f
@user-kl9vw7ok1f 5 ай бұрын
#Question how the authorize know that if user is not logged in or authorize than redirect user to the login page ? please answer.
@emelsalieva8412
@emelsalieva8412 Жыл бұрын
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.)"
@joseoliveira9026
@joseoliveira9026 Жыл бұрын
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 !!!
@Gyantech880
@Gyantech880 Жыл бұрын
16min i facing error pakage restorstion failed
@abbasishaq6554
@abbasishaq6554 Жыл бұрын
Sir when will you release the next part
@DigitalTECHJOINT
@DigitalTECHJOINT Жыл бұрын
Hey Abbas, This week for sure . Make sure you have subscribed and clicked the bell icon to receive notification once we upload videos. Thanks
@fired_developer
@fired_developer Жыл бұрын
Nice explanation, bhai thoda louder voice. 👍
@DigitalTECHJOINT
@DigitalTECHJOINT Жыл бұрын
Thanks for the comments. sure next time will increase the volumne of mic.
@rodrigo-tj1gf
@rodrigo-tj1gf Жыл бұрын
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
@mohamedabdullah423
@mohamedabdullah423 7 ай бұрын
thank u bro could u share the source code?
@gavansebastian
@gavansebastian Жыл бұрын
Hello, I m getting an error when trying to create the scaffolded item for identity (the part from 22:51).
@gavansebastian
@gavansebastian Жыл бұрын
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 Жыл бұрын
@@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 Жыл бұрын
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
@akshaygiri2900
@akshaygiri2900 Жыл бұрын
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 Жыл бұрын
@@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
@poojithapalagani6352
@poojithapalagani6352 6 ай бұрын
In database he didn't create any table. How he get
@Bittu2682
@Bittu2682 9 ай бұрын
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 9 ай бұрын
Please drop me email and we will share across the code. thanks
@faizanaeem1682
@faizanaeem1682 7 ай бұрын
tried again and again but the packages have not been installed now how to get it install?
@DigitalTECHJOINT
@DigitalTECHJOINT 7 ай бұрын
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
@talhajobayer8666
@talhajobayer8666 10 ай бұрын
can you show me how to add a search button in this?
@DigitalTECHJOINT
@DigitalTECHJOINT 10 ай бұрын
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 10 ай бұрын
@@DigitalTECHJOINT i tried but it is showing errors..can you suggest me a video tutorial on this topic?
@AbdallaWalidElemam
@AbdallaWalidElemam 2 ай бұрын
it is work in .NET 8 ?
@DigitalTECHJOINT
@DigitalTECHJOINT 2 ай бұрын
Yes. It will but please select the latest version from Nuget Package Manager . Thanks
@ItsBrockBaby
@ItsBrockBaby Ай бұрын
Mine doesn't want to install 😢help
@khalednabilaly
@khalednabilaly Жыл бұрын
thank you ,could you please share source code
@DigitalTECHJOINT
@DigitalTECHJOINT Жыл бұрын
Thanks!! Please drop us email for source code .
@s.mtripathi5166
@s.mtripathi5166 Жыл бұрын
how can i share this page with my friends?
@DigitalTECHJOINT
@DigitalTECHJOINT Жыл бұрын
kzbin.info/www/bejne/nZndp4aIhLKila8
@aliensoul7600
@aliensoul7600 9 ай бұрын
migration is big head ache . If it's done then whole project is done 🤕
@DigitalTECHJOINT
@DigitalTECHJOINT 9 ай бұрын
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
@ozandinc7985
@ozandinc7985 Жыл бұрын
Thank you sir
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 119 М.
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 119 МЛН
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 9 МЛН
哈莉奎因以为小丑不爱她了#joker #cosplay #Harriet Quinn
00:22
佐助与鸣人
Рет қаралды 8 МЛН
ASP.NET Core Crash Course - C# App in One Hour
1:00:44
freeCodeCamp.org
Рет қаралды 1,5 МЛН
[ASP.NET MVC 5] - Login and Register
36:53
Hòa Nguyễn Coder
Рет қаралды 20 М.
Nvidia CEO: "We're Completely F**ked & Nobody Realizes It..."
13:47
Nvidia Latest News
Рет қаралды 8 М.
Jim Cramer cuts through the noise of today's market decline
13:42
CNBC Television
Рет қаралды 125 М.
ноутбуки от 7.900 в тг laptopshoptop
0:14
Ноутбуковая лавка
Рет қаралды 3,5 МЛН
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
My iPhone 15 pro max 😱🫣😂
0:21
Nadir Show
Рет қаралды 1,8 МЛН
Better Than Smart Phones☠️🤯 | #trollface
0:11
Not Sanu Moments
Рет қаралды 19 МЛН