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
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
Added security changes starts @19:13 (after a basic page is created)
EDIT: Pretty useful and straightforward. Thanks.
Thank You
Definitely one of the best video I've seen on this topic, you've earned a new subscriber.
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
its really tiring
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.
Amazing............... Top Show Congratulations from Brazil
Greatings from India 💌 . Thank You So much for your lovely comments !!! Really Appreciate
Great video sir, thanks for taking the time to create it. I'll definitely be working through some of your other videos too.
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
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!
Very good explanation 🎉🎉
Thank you so much. This is one of the best Tutorials I have ever seen,
Thank brother, this vidoe was very helpful, you've earned my subscription.
Thank You So much !!! more such informative videos will be released on weekly basis . Thanks once again
Very good video
at 13:00 use TrustServerCertificate=True in the connection string
Awesome tutorial, thank you.
thank for sharing
Nice video. Good explanation and specific to the point
Glad you liked it
Thank you sir
Welcome
thank you sir.i am from Afganistan
You are welcome and thanks for visiting Digital TechJoint !!
Very nice tutorial sir thanks
Thank You
goood jobs guys
thx a lot! good job :)
this is what i wantedthanks but dont u have any chanel or source that u can share ur codes or this project to us?
Nice
Bravo
Excellent!
Thank you for your lovely comments. Do share our channel link with your friends & colleagues to help us grow our network. Thanks
Thanks for sharing! Would it work for Database first approach?
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?
love it , subscribe your channel for more updates about .Net. really love your teaching method.
Thank You So much for your lovely comments. We will try our level best to upload more video tutorial on .NET.
do the steps change related to the db connection and interaction, if I'm using SSMS SQL SERVER MANAGEMENT STUDIO.
No it does not
Thanks
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.)"
Wait i got it. incase anyone gets stuck on the same problem just set your TrustServerCertificate=True in the connection string
Sir when will you release the next part
Hey Abbas,
This week for sure . Make sure you have subscribed and clicked the bell icon to receive notification once we upload videos. Thanks
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"
not a lot pf use you dont show the actual code that does the login and register which is quite important
Hi,Does anyone know how to change the password hashing method?
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
Thanks❤
19:15 For adding the actual login system
Thaks a lot
Thank You !!! Please keep visiting our channel and share with your friends/colleagues and help us grow our network. thank you
#Question how the authorize know that if user is not logged in or authorize than redirect user to the login page ? please answer.
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.
Hi, when are you getting this exception ? During migration ?
even after pressing logout the button is present @34:00 can you help me out?
Implemented this into my project however im running into a 404 error when loading the pages. Does anyone understand how i can fix this?
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?
You need video on ASP.NET Active DIrectory (AD) authentication ?? Please confirm ?
@@DigitalTECHJOINT yes
@@LivingStoneRoxks Sure will release tutorial soon. Thanks for visiting DTJ
Can any one please suggest to create registration page after register record should display in grid
Subscribed friend, waiting for the next video
Yes. Next Video is on Identity Roles and Provide Access based on Roles. Stay Tunned
Done. Released video on Authorization based on Roles .
16min i facing error pakage restorstion failed
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..
Please drop me email and we will share across the code. thanks
which approach you are using? this is not EF database 1st approach., in that model classes are genreated automaticallly.,
tried again and again but the packages have not been installed
now how to get it install?
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
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 😢
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
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.)"
can you show me how to add a search button in this?
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
@@DigitalTECHJOINT i tried but it is showing errors..can you suggest me a video tutorial on this topic?
is there a way to do that without identity??? cz it literallly isnt possible to scaffold it for me
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
Perfect
In database he didn't create any table. How he get
Nice explanation, bhai thoda louder voice. 👍
Thanks for the comments. sure next time will increase the volumne of mic.
Hello, I m getting an error when trying to create the scaffolded item for identity (the part from 22:51).
The error message is "There was an error running the selected code generator:
'Package restore failed, Rolling back package changes for 'ProjectName'.'".
@@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.
@@Big_Dai Thanks a lot!
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
thank u bro could u share the source code?
Hi! have someone published this solution to Azure successfully? Not working in azure for me.
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 !!!
sir all dependencies are version 6 but still code generator error rollback changes in package shown while scafolding controller help
share me the exact error on email. digitaltechjoint@gmail.com
@@DigitalTECHJOINT sir thanks for reply to me error solved and due to different version dependency that errors occurred
@@akshaygiri2900 Happy to know that. Keep programming and do share our channel with your collegues and friends. Thanks
it is work in .NET 8 ?
Yes. It will but please select the latest version from Nuget Package Manager . Thanks
Mine doesn't want to install 😢help
migration is big head ache . If it's done then whole project is done 🤕
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
thank you ,could you please share source code
Thanks!! Please drop us email for source code .
how can i share this page with my friends?
ruclips.net/video/ghzvSROMo_M/видео.html
Very nice video
So nice
Thank you sir