Linked Questions
22 questions linked to/from ASP.NET Identity with EF Database First MVC5
2
votes
2
answers
1k
views
How can ASP.NET Identity be used with a Model First approach? [duplicate]
I'm developing an ASP.NET MVC 5 application which rely on a Model First approach using Entity Framework 6. I've already generated my database using my .edmx and everything works fine.
Now, I'd like ...
62
votes
5
answers
104k
views
Using Asp.Net Identity DataBase first approach
I need to integrate Asp.Net latest MVC version with an existing database which has an additional column String Address to table dbo.AspNetUsers
I need to create an instance ApplicationUser which has ...
36
votes
1
answer
42k
views
How to add ASP.NET MVC5 Identity Authentication to existing database
I am learning MVC5 identity authentication and was reading materials on www.asp.net.
I have a few questions here.
If I want to use identity authentication, is there a reason not to use MVC template? ...
12
votes
2
answers
12k
views
How to set up the Entity Framework model for Identity Framework to work against an existing database?
I am migrating my old website from PHP to C# MVC. I want to use Microsoft's Identity set-up as it looks rather neat.
I already have my solution set up using database-first entity framework. I have ...
7
votes
3
answers
8k
views
Complex authentication with existing user database in MVC5
I'm migrating a SaaS app from Classic ASP to .NET MVC5 and will use EF6 Database First. The login form for end users is customisable by each tenant (on their own subdomain but pointing to the same web ...
13
votes
2
answers
16k
views
Renaming dbo.AspNetUsers table
I'm trying to rename the default table names generated by ASP.net Identity 2.0. I read all the articles, the questions and the answers on stackoverflow but im still getting the same error.
I renamed ...
5
votes
1
answer
5k
views
Customising the OWIN/Katana UserManager factory behaviour
There are many samples online using OWIN/Katana to find users in a database based on ausername/password combination and generate a claims principal, such as...
var userManager = context.OwinContext....
12
votes
1
answer
7k
views
Adding MVC 5 Identity to an Existing Project
I am a novice programmer, learning as I work on my first code project. I started with MVC 4 and managed to get CRUD working for a single entity. I decided to try to tackle security next. When Visual ...
7
votes
2
answers
7k
views
using same dbContext for Identity and other db entities
I have an application which uses EntityFramework edmx models and i want to be able to use the same dbContext for my Identity classes and the entity classes. Someone has raised a Similar Query but i ...
2
votes
1
answer
5k
views
Entity Framework does not create identity tables on existing database
My current project has two database connections:
The first is used for the IdentityModel and uses a local .mdf file. The second i created on an external SQL Server and was imported using Database ...
3
votes
2
answers
6k
views
The entity type ApplicationUser is not part of the model for the current context Asp.Net MVC
Below is Required Code For my application . I am getting error stated above in my Account Controller file . I am using built in Account Register & Login code in MVC 4 . Unable to register the User ...
3
votes
2
answers
2k
views
Ignore user roles in ASP .Net MVC 5 Identity
I am currrently using ASP .Net MVC 5 Identity framework to manage user authentication in my simple MVC 5 application. My Database contains 5 Identity related tables:
dbo.AspNetUsers
dbo.AspNetRoles
...
0
votes
2
answers
5k
views
How to get custom Id from AspNetUsers table
I'm currently working on a website which is being developed in ASP.NET and C#. To get theUserId from AspNetUsers table by simply doing User.Identity.GetUserId() which returns something like m13t79j0-...
6
votes
1
answer
4k
views
ASP.NET Identity Model First fails because of renamed AspNetUserRoles columns
Like several others I have tried to implement ASP.NET Identity Model First. Everything works fine once you have tried, errored, fumed, searched and resolved.. I thought.
See also:
ASP.NET Identity ...
5
votes
4
answers
2k
views
Implementing OWIN using existing Database name validation?
I wish to implement OWIN as per the example I could find here:
http://www.asp.net/web-api/overview/security/individual-accounts-in-web-api
However, since this way of working is new to me especially ...