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
2
votes
0 answers
How change username in Identity 3?
I want crud operation for Identity user. When i click on submit button it show me error
ArgumentNullException: Value can not be null.
Parameter name: provider
…

user1088259
- 345
- 13
- 34
2
votes
1 answer
Entity Framework ApplicationUser child entities return null
We have an ApplicationUser class which inherits from IdentityUser. An ApplicationUser can have many devices.
public class ApplicationUser : IdentityUser
{
public virtual ICollection Devices { get; set; }
}
A Device is defined as
…

Vague
- 2,198
- 3
- 18
- 46
2
votes
0 answers
ASP.NET Identity - creating a user with UserManager
I am trying to build a simple login system from the ground up, using ASP.NET MVC v5, Entity Framework v7, and Identity v3.
All I want is for the user to create an account, and for that account to be saved in a database. This is the Register POST…

jmk22
- 1,104
- 4
- 15
- 27
2
votes
1 answer
How to response status 401 on ASP.NET 5 ASP.NET Identity 3.0 RC1
In all tutorials that I use the code
app.UseCookieAuthentication(ctx =>
{
ctx.AutomaticChallenge = true;
ctx.Events = new CookieAuthenticationEvents()
{
…

Andrej Matijevic
- 56
- 1
- 8
2
votes
1 answer
How to register middle-ware for a Custom Asp.Net Identity Storage Provider using ASP-5 / MVC-6 / Identity 3
I am trying to upgrade an Asp.Net Identity 2 'custom storage provider' to work with Identity 3 beta 4 in Visual Studio 2015, with the default MVC6 template.
I'm having difficulty learning how to register the Asp.Net Identity 3 custom storage…

Si Bxxx
- 189
- 15
2
votes
2 answers
User roles are zero after login in MVC6?
I am using the default site template that comes in visual studio 2015. I have added some roles and assigned roles to the user. When a used signs in, the roles are zero. What do I need to do to get the roles working?
[HttpPost]
…

eadam
- 23,151
- 18
- 48
- 71
1
vote
1 answer
Overriding SignInManager throwing an error on startup
I am trying to override the SignInManager with CustomSignManager but while registering it at the startup class I am getting an error
System.InvalidOperationException: Type CustomSignInManager`1 must derive from UserManager.
at…

LilRazi
- 690
- 12
- 33
1
vote
1 answer
Blazor Server Side Login Page Not Redirecting on Chrome
I am running into a weird issue/bug with Blazor Server Side and ASP.NET Core Identity, and it only happens on Chrome. It works perfectly on Microsoft Edge. Basically to login, I am using the default ASP.NET Identity Razor Page (i.e.…

Ray
- 67
- 7
1
vote
0 answers
how to delete identity users on delete cascade?
I am building an application using ASP.NET CORE 3.1 and built identity using built in funcations. When I delete or update I want to delete users and related entities from aspnetuserroles and aspnetusers.
I made an update users but seems verbose and…

sesamii seed
- 659
- 2
- 8
- 11
1
vote
0 answers
Creating Async User with default IdentityUser does not seems to work after upgrade from .NetCore2.2 to .NetCore3.0
Working implementation
I have changed the default type of the identityUser to an integer and the rest of the configuration in order to get it to work correctly again.
Startup Configuration
Changed: identityBuilder = new…

Roy Mengelers
- 11
- 2
1
vote
1 answer
Manually Authenticate a User with Claims for every request
I am using ASP.NET Core 2.2 and ASP.NET Identity on an API.
Is it possible to Manually Authenticate a User with Claims for every request?
I would like to use this during initial development stages ...

Miguel Moura
- 36,732
- 85
- 259
- 481
1
vote
2 answers
Can't retrieve UserId from Microsoft.AspNet.Identity
I have created a new class that I want to manage a few things, one of which is to get the User Id Microsoft.AspNet.Identity. I get this error message
CS0103 The name 'User' does not exist in the current context
And this is my code:
using…

The OrangeGoblin
- 764
- 2
- 7
- 27
1
vote
1 answer
.Net Identity 3 on existing solution
I believe that .NET Identity 3 cannot run on an existing (v4.5) ASP.NET solution, but requires .NET Core. I cannot update to .NET Core. Is there a workaround for this? If not then how are people supposed to migrate from ASP.NET Membership to ASP.Net…

SJDoodle
- 351
- 3
- 11
1
vote
1 answer
Deleting ASP.NET Identity users using SQL
Is it ok to delete records from ASP.NET identity tables AspNetUSers, AspNetRoles and AspNetUserRoles directly from SQL Server using T-SQL? The ASP.NET Core app is using only these three identity tables other AspNet... tables are empty.
UPDATE:
Why…

nam
- 21,967
- 37
- 158
- 332
1
vote
1 answer
With Implicit Flow on IdentityServer4 I am not receiving User data as Name and Claims in IIdentity when making requests with Authentication Bearer
I'm using IdentityServer4 in ASP.NET Core on Framework 4.6.2 with EntityFramework 6 and Asp.Net Identity 2 (not Core).
For this I implemented the IProfileService.
And I am using in my client with Angular 4.x the oidc-client.js library.
I write the…

JamesTK
- 113
- 8