Menu
User and password login without database
Jul 18, 2016 09:58 AM|ygoe|LINK
The code above is a simplified version of the Register.aspx.cs file that is created when you create a new ASP.NET Web Forms project. The IdentityUser class is the default EntityFramework implementation of the IUser interface. IUser interface is the minimal interface for a user on ASP.NET Identity Core. This means if you create a new instance of a derived class such as ApplicationUser a new Id will still automatically be generated for you. So, after you check that the user has been successfully added you can safely use the Id in the ApplicationUser class for your data association.
I'm starting an ASP.NET Core project (on .NET Framework 4.6) that requires user login with user name and password. I know how to manage a session and login state in PHP but have never done that in ASP.NET. Now I've read about ASP.NET Core Identity but that requires Entity Framework and a local database for the credentials. I can't use that because there will be no database where the web application runs. Instead, there is a custom network connection to a backend server that does the authentication. (Think of it like a web mail interface with IMAP server authentication. The web app just passes the login data through.)
Vtech dect 6.0 answering machine user manual. What is the suggested procedure to implement such user login on ASP.NET Core without the default database or external providers?
Can I use Identity at all for this task or should I revert to fully manual session and login management like in PHP 4?
Create New User In Vista
If Identity can/should be used for this, where can I find documentation about it? The docs.asp.net site only covers the standard case with local database but fails to explain what I need to change to leave out the database. It even pulled in an EntityFramework NuGet package which I haven't requested. I'd also like to know then how Identity works technically. Does it use Session, or cookies, or something else?