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
3
votes
2 answers
MVC6 Identity3 - How to create common User Accounts for multiple WebApps
I'm new to MVC and currently working with MVC6 (EF7, Identity3, VS2015)...
I would like create two different/independent WebApps in one company domain (in different sub domains).
I would like use common/shared identity/login system for both Apps -…

Lukasz Mk
- 7,000
- 2
- 27
- 41
3
votes
1 answer
ASP.NET Identity 3 cookie authentication not working as expected
The login code seems to work because PasswordSignInAsync return Succeed, but when I'm getting the user information on the next request by using User.GetUserName(), it always return me null. And also User.IsSignedIn() is also returning false.
public…

Kien Chu
- 4,735
- 1
- 17
- 31
3
votes
1 answer
How to check if AspNetUser satisfies condition before PasswordSignInAsync?
I've added a new column to AspNetUsers using the way proposed by Microsoft:
public class ApplicationUser : IdentityUser
{
public bool AdminConfirmed { get; set; }
}
Which means that admin have to confirm user account after registering.
The…

Piotrek
- 10,919
- 18
- 73
- 136
3
votes
0 answers
Asp.Net Core Custom IdentityUser for existing DB schema
I have inherited an existing database (with data) and I would like to use Identity 3.0 and its features. I can not change the schema of the database. From what I've researched it seems doable, but I would need to override a lot of things.
My…

Nick De Beer
- 5,232
- 6
- 35
- 50
3
votes
2 answers
Asp.Net MVC 6 Identity 3 MongoDB External Login (Facebook)
I'm running the RC1 of ASP.NET MVC 6 and would like to use a MongoDB Identity Provider.
I have implemented the provider by Grant Megrabyan which is doing a great job of registering new users and allowing them to log in but I get the error:…

GavKilbride
- 1,409
- 15
- 19
3
votes
1 answer
What code in ASP.NET Identity sets the user's security stamp?
A security stamp is a random value generated based on the user's user name and password.
Following a chain of method calls, I traced the security stamp's origin to the SecurityStamp property of the…

Water Cooler v2
- 32,724
- 54
- 166
- 336
2
votes
0 answers
How can I update a user's claims after they have logged in using ASP.NET Identity
I am working on a Blazor web application with ASP.NET Identity added to it.
The account register/login functionality has all been added as MVC out of the box.
After the user has logged in, they interact with the Blazor app.
After they have logged…

Paul Houghton
- 491
- 3
- 9
2
votes
1 answer
Asp.net core Identity Password reset "invalid token" even though tokens generated are identical
I am on Asp.Net core with .Net 5.0 In startup I have added;
services.AddIdentity(SetupIdentityOptions)
.AddEntityFrameworkStores()
.AddDefaultTokenProviders();
…

user2058413
- 691
- 3
- 10
- 28
2
votes
1 answer
Problems with Identity.TwoFactorRememberMe and updated user SecurityStamp
After signing in using two-factor with authenticator app, I set rememberClient to true like this:
await _signInManager.TwoFactorAuthenticatorSignInAsync(code: request.Code,
isPersistent:…

Peter Hedberg
- 3,487
- 2
- 28
- 36
2
votes
0 answers
ASP.NET Identity Core tables not getting generated in MSSQL database
.NET core 2.0 solution in Microsoft Visual Studio 2017, with latest updates
My app hasn't worked since back when I had everything running great on .NET core 1.1. I had gotten off to a very nice start after watching some Shawn Wildermuth, Kevin Dockx…

Joey
- 115
- 1
- 15
2
votes
1 answer
add-migration command fails on ApplicationDbContex
App: Asp.NET Core 1.1.1, EF Core
Platform: Visual Studio 2017 5.3.3
Authentication Mode: Individual User Accounts
Following this tutorial from ASP.NET official team, the following command runs successfully:
PM> Add-Migration MyFirstMigration…

nam
- 21,967
- 37
- 158
- 332
2
votes
1 answer
InvalidOperationException: A circular dependency was detected for the service of type 'Microsoft.AspNetCore.Identity.UserManager
This happens after I customized the asp.net core identity services to support multi-tenancy based on This article. I simplified it to suite my needs.
Here is my basic setup.
1) Custom application user
public class ApplicationUser :…

user2058413
- 691
- 3
- 10
- 28
2
votes
1 answer
Create users on behalf in ASP.Net Core Identity - Auto Generate password
I need to create users in ASP.Net Core without providing the passowrd as it will reset by the user itself after receiving the confirmation email with temporary credentials.
Years ago, I did something similar using MVC4 by generating automatically a…

Sylvain C.
- 1,043
- 1
- 11
- 27
2
votes
0 answers
How asp.net identity framework create the OTP and verified?
I have a question regarding ASP.NET identity framework. Identity framework allows generating OTP code if two ways authentication is enabled! My question is, how OTP is generated and where it is saved for confirmation.
Generating Token for changing…

Ali Murtaza
- 109
- 1
- 9
2
votes
1 answer
With openIdDict do we have to have 'UseIdentity()' in Startup.cs?
We have an asp.net core web app that uses OpenIdDict for authentication. I've noticed that my unauthenticated Ajax calls return a 200 and our login form in the body of the response. From what I've read this is expected behavior since OpenIdDict…

Mike Becatti
- 2,052
- 1
- 16
- 32