The third release of the ASP.NET Identity system which was designed to replace the previous ASP.NET Membership and Simple Membership systems. Use this tag if your question deals specifically to ASP.NET Identity 3 features. The [asp.net-identity] tag should be used if your question is not specific to ASP.NET Identity 3.
Questions tagged [asp.net-identity-3]
225 questions
4
votes
2 answers
Cannot use table 'AspNetUsers' in schema '' for entity 'AspNetUsers' since it is being used for another entity
We are trying to add Identity 3 to our existing Customers app by extending AspNetUsers
public class ApplicationUser : IdentityUser
{
public string BusinessName { get; set; }
public string ContactName { get; set; }
public string…

Vague
- 2,198
- 3
- 18
- 46
4
votes
1 answer
userManager.CreateAsync System.ObjectDisposedException was unhandled
We are trying to use Microsoft Account Authentication in an ASP.Net 5 project. We don't require local authentication and don't require user names.
In the ASP.Net 5 Template for a web application, after signing in with an external provider, control…

Vague
- 2,198
- 3
- 18
- 46
4
votes
0 answers
Authentication with WebApi & AspNet.Identity 3
What is the best authentication solution for a WebAPI/AspNet.Identiy 3.0-*/SPA architecture?
It seems that OAuth 2.0 JWT bearer token is a better approach vs coockies. But I could not find up to date examples with AspNet.Identity 3. Does anyone…

Steven Muhr
- 3,339
- 28
- 46
4
votes
1 answer
Are there any implementations of ASP.NET Identitity that have another level above account?
I am using ASP.NET Identity. It works well but I would like to add in a parent to the AspNetUsers table. In my case I would like to have each user belong to an organization. At this point I am just looking for some ideas to see if others have seen…

Samantha J T Star
- 30,952
- 84
- 245
- 427
4
votes
2 answers
UserValidator in Microsoft.AspNet.Identity vnext
I have a problem where I cant use email addresses as usernames when using microsoft.aspnet.identity (Individual user accounts selected when creating new project - default mvc project template for asp.net 5). I have read in many places that this is…

rdans
- 2,179
- 22
- 32
4
votes
2 answers
How to turn on Roles in Asp.net Identity 3.0 and MVC 6?
I am not sure if I am missing something here. By Default User.IsInRole() does not work even if user DOES HAVE some roles.
I don't have my own implementation of role stores. I am assuming that the default ones should work. Is there something special…

eadam
- 23,151
- 18
- 48
- 71
3
votes
1 answer
Entity Framework Core with .Net 4.7 MVC Identity Issues
I am looking to replace EF6 with EF Core in a project i have just started building.
The issue i am facing is that currently i am inheriting my Context from IdentityDbContext like so using Identity.
public partial class MyContext :…

kramms
- 31
- 4
3
votes
0 answers
ASP.NET Core error: Invalid token Error when implementing Forgot Password
In my ASP.NET MVC Core 1.1.1 app with Individual User Accounts mode in VS2017 ver 15.3.3, I'm implementing Forgot Password functionality. The app is correctly sending the email with a generated link. I can open my email and can see the link…

nam
- 21,967
- 37
- 158
- 332
3
votes
2 answers
AspNetCore Middleware UserManager Dependency Injection
I have a multi-layer application that I started writing in ASP.NET Core 1.1 which I'm still learning along the way. I have organized it like previous apps I've done in the Web API, I have host service (net core app), business layer and data layer…

Милан
- 195
- 1
- 3
- 9
3
votes
0 answers
Role based authentivation in ASP.NET core MVC 6
I have searched for some hours now and can't figure out how to set up a role based authentication in asp.NET core MVC 6 using identity 3.
I have worked my way trough these threads:
Adding Role dynamically in new VS 2013 Identity UserManager
Creating…

Promos
- 31
- 3
3
votes
1 answer
ASP.NET Identity - Custom role validation not being called
I am trying to the create a custom RoleValidator object to validate my custom IdentityRole. I have created an ApplicaitonRoleValidator class that inherits from RoleValidator and set this as the RoleValidator in my ApplicationRoleManager class. But…

Padhraic
- 5,112
- 4
- 30
- 39
3
votes
3 answers
Asp.net Identity 3 return 403 Unauthorized request instead of redirect for WebAPI call
I used Asp.net Identity 3 within Asp.net core project (only compile against net451.)
Here is the question, when I call the WebAPI with [Authorize] tag, the system always return the login url instead of 401 for unauthorized call. I wonder how to make…

maxisam
- 21,975
- 9
- 75
- 84
3
votes
3 answers
ASP.NET 5 Identity 3 users get signed out after some time
I'm, using RC1 bits and external (Google) authentication, no Identity.EntityFramework.
During login, I set 'Remember me' flag.
Logged-in user survives browser restart (I see cookie set to expire in 14 days) and website restart.
But after some time…

Dmitry
- 16,110
- 4
- 61
- 73
3
votes
4 answers
Back button issue in MVC 6 after login and logout
I am trying to restrict user to click back button after Login/Logout into the application.
If the user is logged in into the application, then after clicking on back button Login view should not be displayed and if user is logged out from the…

XamDev
- 3,377
- 12
- 58
- 97
3
votes
1 answer
Store custom datas in Identity Cookie
Is there a way to store some custom datas from the user inside the cookie generated by the Identity API ?
We are building an multi-tenant application, and so multiple companies can access to the same instance of our application. That's why I need,…

Christophe Gigax
- 3,211
- 4
- 25
- 37