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
1
vote
1 answer
Method FindByLoginAsync doesn't work correctly with AspNetCore.Identity
I have used the AspNetCore.Identity in my Asp.Net Core application and I want to call the method called FindByLoginAsync but result is always NULL.
Versions:
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1.1.1)
Microsoft.AspNetCore.Identity…

Jenan
- 3,408
- 13
- 62
- 105
1
vote
1 answer
ASP.NET MVC 5 get claims
I use third-party auth nuget instagram package for login and set new claim:
app.UseInstagramAuthentication(new InstagramAuthenticationOptions
{
ClientId = "XXXXXXXXXXXXXXXXXXXXXXXXX",
ClientSecret =…

Oleg Sh
- 8,496
- 17
- 89
- 159
1
vote
1 answer
AddToRoleAsync fails to find Role
I have a small test app using Asp.net Core Identity.
In the startup I check that certain system roles are in place:
if(await _roleManager.FindByNameAsync(“SYSADMIN”) == null)
{
_context.Roles.Add(new IdentityRole(“SYSADMIN”));
await…

LDJ
- 6,896
- 9
- 52
- 87
1
vote
1 answer
How do user user id relate between local user store and oauth providers?
My context
I'm trying to create a custom User/Role storage for ASP.NET Identity
Background
There are several questions here at SO about getting the user id when using ASP.NET Identity. Most of them resolve around parsing the NameIdentifier…

jgauffin
- 99,844
- 45
- 235
- 372
1
vote
1 answer
Cache user profile with external authentication .NET Core IdentityServer4
New to the whole Identity concept but I've had a couple of Google searches and haven't found a reply I felt fitting.
I'm using .NET Core 1.0.0 with EF Core and IdentityServer 4 (ID4).
The ID4 is on a separate server and the only information I get in…

Max
- 137
- 2
- 10
1
vote
1 answer
how to install aspnet.identity code template with the latest identity version?
I've tried to install identity code template using this pm command :
Install-Package Microsoft.AspNet.Identity.Samples -Pre
but the identity version that i get is 2.1.0-alpha1.I reviewed the nuget.org and found that this is the latest version…

aliadly
- 77
- 1
- 11
1
vote
0 answers
how can i add another UserManager and SignInManager in the different controller
when use mvc identity ,i have three database,and all of them have user table,in startup.cs there was a default UserManager and SignInManager,how can i add another UserManager and SignInManager in the different controller?(i mean i have different…

Blackmanba
- 21
- 3
1
vote
1 answer
Asp.Net Identity 3 without datastore
I'm planning on building a web application with Asp.Net Core without local user accounts; any authentication will happen by external authentication providers using SAML2. Am I right that I won't need the Entity Framework datastore that is configured…

Thaoden
- 3,460
- 3
- 33
- 45
1
vote
1 answer
MVC Core RC2, External login via Microsoft Account
After moving my project to MVC Core RC2 I can't login via external Microsoft Account... Everything other works fine including login via Google Account.
It works perfectly on RC1 and nothing change directly in this part of my code after moving to…

Lukasz Mk
- 7,000
- 2
- 27
- 41
1
vote
1 answer
Issue filtering users on role with UserManager .Net Core
I'm having an issue filtering users on their roles. Filtering only on the query works nicely enough alone.
var result =
_userManager.Users.Where(a =>
(a.UserName.Contains(query) || a.Email.Contains(query))
&& !a.Roles.Any(b => b.RoleId…

Thomas Andreè Wang
- 3,379
- 6
- 37
- 53
1
vote
2 answers
Using a Custom SignInManager
I setup identity as follows:
services.AddIdentity(
c =>
{
c.Password.RequireDigit = false;
c.Password.RequiredLength = 8;
c.Password.RequireLowercase = false;
…

Liam M
- 5,306
- 4
- 39
- 55
1
vote
1 answer
Identity 3 not working i Internet Explorer
I have problem with Identity 3 in our asp.net core application. We use "standard" sign in:
var result = await _loginManager.PasswordSignInAsync(model.UserName, model.Password, false, lockoutOnFailure: false);
The result is Ok and the cookie is set…

Ola Ekelund
- 111
- 1
- 7
1
vote
1 answer
Seeding user with int ids fails in Asp.net core MVC6
I am using Identity 3. I want to seed an admin user on startup.
I have converted the string ids to "int" ids using as an example SwiftCourier on github. Identity 3 is different in some aspects and this applies to the setting of "int" for ids as…

si2030
- 3,895
- 8
- 38
- 87
1
vote
2 answers
Integrating & Extending .NET Identity Classes in EF (Code first)
I am starting an entirely new .NET MVC project, using code-first against EF 6 and .NET 4.5. I want to use Identity framework also, and extend the Identity base classes within the context configuration for my project. (Not sure I am stating that all…

Michael Doleman
- 522
- 2
- 9
- 24
1
vote
2 answers
IAuthorizationFilter not called every time
We use an IAuthorizationFilter class to filter all request, and check if custom user claims are still present (multi-tenant app) in the authentication cookie. These information are essentials for the rest of the application. If these informations…

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