Questions tagged [asp.net-identity-2]

The second 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 2 features. The [asp.net-identity] tag should be used if your question is not specific to ASP.NET Identity 2.

Resources:

Announcing RTM of ASP.NET Identity 2.0.0

1063 questions
0
votes
0 answers

Breeze client return undefined for navigation property id

I do not know Why breeze.js is not showing all my data from my database table, fields with navaigation property from applicationUsers in ASP Identity are returned undefined but when i query the breeze controller resource endpoint on the server all…
0
votes
1 answer

Getting additional fields with Identity 2.0 in Layout page

I have an issue that I assumed would be a simple fix, but has turned into a big problem. On my _Layout.cshtml page, I just want to display the current user's first and last name. This is stored in the AspNetUsers database table in the Name column. I…
Steven
  • 18,761
  • 70
  • 194
  • 296
0
votes
1 answer

Multi-Tenant One Database One Schema ASP.NET MVC 5, Entity Framework 6,

I'm trying to find the best way for a multi-tenancy setup for an application. I would like to have a single database for the clients with a TenantId on each table with a single table with all the tenants information. Ex. Db Tenant Table(TenantId,…
0
votes
1 answer

Using Asp.Net Identity using a LocalDb works OK, but when I change to my SQL Server 2005 Database, it gives an error

I have been messing around with this for a few weeks, and I have finally decided to ask the question here. I have found similar issues on Stackoverflow, but nothing that is the same as my problem, and obviously, nothing that is close enough to help…
kmorgan26
  • 11
  • 3
0
votes
1 answer

Violation of PRIMARY KEY constraint 'PK_dbo.AspNetUserRoles'. Login exception

In an app am working on, I added some test accounts together with appropriate roles in my 'DropCreateDatabaseIfModelChanges' migration class. Now when I try to login for the first time using var result = await SignInManager …
Cizaphil
  • 490
  • 1
  • 6
  • 23
0
votes
1 answer

usermanager.findasync returns null for code generated users

I'm having a problem with users that I create in code. They work for the first few login attempts but then after a while stop logging in and return null from the findasync method. if I do a findbyname it returns the user however this doesn't check…
0
votes
1 answer

Using Neo4jUserManager

I'm new at Neo4j and I'm going to use neo4j.AspNet.Identity for my authentication and authorization. I'm using neo4jUserManager and also neo4jUserStore.But when I run the application, in Neo4jUserManager create method I'll face with…
0
votes
1 answer

Can't find user (social login) with FindAsync(UserLoginInfo)

My app uses social login providers (facebook and linkedin) and asp.net Identity for membership. The below code creates the user IdentityUser user = new IdentityUser(username); IdentityResult identityResult = await _repo.CreateAsync(user); I should…
Joshua Ohana
  • 5,613
  • 12
  • 56
  • 112
0
votes
1 answer

Generate access token for "auto sign in" links

I have a page in my ASP.NET MVC project that users should be able to access just by pressing a link (without signing in). I think I should generate some kind of access token based on the username/userId, but I'm not really sure how. Full…
Joel
  • 8,502
  • 11
  • 66
  • 115
0
votes
1 answer

Asp.Net Identity Custom User Roles (querying)

I have successfully created custom users and roles within the Asp.Net Identity framework, however one section which is lacking is support for the 'Roles' collection within a User. I added a logical 'Deleted' flag within a UserRole and I want this…
0
votes
0 answers

How to access DataProtectionProvider in simple class?

I am using ASP.NET Identity 2.0. In my business layer (a separate DLL), I am using a UserManager for simple tasks like CreateUser oder DeleteUser. protected UserManager UserManager { get { if (_userManager ==…
Ingmar
  • 1,525
  • 6
  • 34
  • 51
0
votes
0 answers

Is there a way to get the user password using UserManager in ASP.NET Identity 2.0?

I am using ASP.NET MVC 5.0 and Identity 2.0. I'm trying to get the user password using UserManager. It seems there is no ways to get the password back. It gives back only the password hash. Is there a way to get the user password?
RAM
  • 856
  • 1
  • 8
  • 27
0
votes
1 answer

How to get the identity upon password login in ASP.NET Identity

I am using ASP.NET identity, and below code to login user SignInStatus result = await SignInManager.PasswordSignInAsync(model.EmployeeNo, model.Password, model.RememberMe, shouldLockout: false); It works, the user is successfully logged in. But…
imgen
  • 2,803
  • 7
  • 44
  • 64
0
votes
1 answer

ASP Identity Framework 2: UserManager sync methods will run in _other_ thread which makes HttpContext.Current to null

In ASP Identity Framework 2 UserManager has sync wrappers for many of its async methods. Unfortunately this sync wrappers are using AsyncHelper, say FindById(...): return AsyncHelper.RunSync(() => manager.FindByIdAsync(userId)); Examining the…
g.pickardou
  • 32,346
  • 36
  • 123
  • 268
0
votes
1 answer

Getting the email from external providers Google and Facebook during account association step in a default MVC5 app using Identity 2.0

As per this answer: http://stackoverflow.com/questions/20378043/getting-the-email-from-external-providers-google-and-facebook-during-account-ass/20379623#20379623 I am trying to get the email from an external provider. This is my…
Three Value Logic
  • 1,102
  • 1
  • 15
  • 37