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
0
votes
1 answer
ASP.NET Identity authenticate through Web API instead of the default database
Using ASP.NET Identity can you make calls to a Web API instead of the default database? If so, how would you go about it?

Zombeez
- 1
0
votes
1 answer
Should I seed Identity database with Roles or Claims of type Role?
I am writing an ASP.NET Core 1.1 web application. Now I am trying to setup my database so that it is ready for use but I am stomped at something that seems basic...
I am pretty familiar with Roles and somewhat with Claims. I know I can create a…

Lord of Scripts
- 3,579
- 5
- 41
- 62
0
votes
1 answer
Rename the default tables in asp.net identity 3 (dbo.ASPNetxxx) with Uniqueidentifier or int for IDs
I have created a new web application in ASP.Net Core 1.1, the default templates of ASP.Net identity 3 comes with nvarchar(400) or strings as the default data type for the "Id" fields.
I have changed the default TKey type from nvarchar(400) to…

Alaa Alweish
- 8,904
- 16
- 57
- 84
0
votes
1 answer
IdentityServer4 with two Different Login Screens
I have two user roles, role A and role B.
Role A is allowed to have a 3rd party authentication access (Facebook and Twitter) in addition to the default one.
Role B only allows the default login method (username and password).
Both roles should have…

Adam
- 3,872
- 6
- 36
- 66
0
votes
1 answer
How to seed a user into the database with ASP.NET Identity?
For security, I don't want just anybody to be able to register on my site but I can't stop users from registering while there is a registration page accessible on the site, so I added an "Authorized" flag to the ApplicationUser model:
public class…

Ortund
- 8,095
- 18
- 71
- 139
0
votes
0 answers
Applying LINQ's OrderBy method to Users property of UserManager class of ASP.NET Identity
In an ASP.NET Core 1.1 app with Individual User Accounts authentication, I'm trying to display a dropdown of Users in an ascending order. But the VS2015's Intellisense does not recognize the .OrderBy(u => u.Value) of the code below. Why is that?. I…

nam
- 21,967
- 37
- 158
- 332
0
votes
1 answer
AddToRoleAsync is throwing strange SQL error
In my ASP.NET MVC Core 1.1 app, the AddToRoleAsync call in the last line of the following code is throwing the error: The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION. This is kind of odd since I don't have any other transaction…

nam
- 21,967
- 37
- 158
- 332
0
votes
0 answers
mvc identity - SignInManager.PasswordSignInAsync returns null
UPDATE:
Fixed this by adding
ConfigureAuth(app);
to Startup.Auth.cs
I'm creating a web application with identity 3. I'm using the default template for mvc 5 c#. When I'm logging in, this line in AccountController returns null:
var result = await…

CAMELYON
- 31
- 1
- 1
- 10
0
votes
1 answer
Checking password complexity and validity of a token during email confirmation on Identity 3.0
I have a web app, using ASP.NET Identity 3.0, in which I create the users (instead of users registering themselves). I send a confirmation email to validate their email accounts. The idea is that they come in through the URL and, since they don't…

AbeyMarquez
- 625
- 4
- 13
0
votes
0 answers
Inheritance one-to-one or zero relationship with IdentityUser class
This is my Classes :
public class ApplicationUsers : IdentityUser
{
[InverseProperty("ApplicationUser")]
public virtual User User { get; set; }
[InverseProperty("ApplicationUser")]
public virtual…

paradise_human
- 685
- 2
- 14
- 31
0
votes
1 answer
Change Primary Key for Users in ASP.NET Identity
To achieve int primary key I followed this article: https://www.asp.net/identity/overview/extensibility/change-primary-key-for-users-in-aspnet-identity
It compiles but on startup it gives me this error message:
An exception of type…

dsb
- 2,347
- 5
- 26
- 43
0
votes
1 answer
Authenticate just once in MVC and Web Api applications using asp.net identity
I have this solution:
I need to authenticate on the ASP.NET MVC site and on the Web Api 2.0 just once (I mean that I do not have to check if username and password is correct on MVC site and then check them on Web Api again).
I honestly think that…

Simone
- 2,304
- 6
- 30
- 79
0
votes
1 answer
Allowing access to multiple Roles Using User.IsInRole
@if (User.IsInRole("Admin")) {
//Link goes here.
}
That all works fine and dandy but what do I do when I would like to allow multiply roles such as:
@if (User.IsInRole("Admin, SuperUser")) {
//Link goes here.
}

Chantry
- 3
- 2
0
votes
1 answer
Moving ASP.NET Identity IdentityConfig.cs from App_Start folder
I use ASP.NET Identity 2.0 in an ASP.NET MVC5 project that is composed of three layers; Web application (presentation layer), Unit Test (test project) and Class library (data layer). Normally IdentityConfig.cs is located in the App_Start folder of…

Jack
- 1
- 21
- 118
- 236
0
votes
1 answer
Error with German character in Asp.Net Core Identity
When I try to create a User with the UserManager and there are characters like ä, ö, ü in the UserName, I get a succeeded=false. I don’t understand why it is a problem. The DB is nvarchar (255) and should not have a problem with German characters. I…

Sknecht
- 984
- 2
- 11
- 31