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
11
votes
1 answer

How to configure ASP.NET Identity ApplicationUserManager with StructureMap

I am using asp.net identity in my project and using structuremap as DI framework. the problem is when i use constructor injection then ApplicationUserManager not configured all of it's members e.g TokenProvider, ... this is my ApplicationUserManager…
11
votes
1 answer

Custom email confirmation token

I'm using the Identity 2.0 framework for user management. Unfortunately, in my use case an account activation/password reset cannot be done using a direct link, so the user would have to copy the code from his e-mail and paste it into the…
Cloud
  • 458
  • 1
  • 13
  • 34
10
votes
1 answer

Asp.Net Identity Generate Password Reset Token from one Application Pool Identity and Verify on another

We have a customer facing website and a back office for creating users. Creating a new user with a welcome email with password reset works flawlessly when running both application on IIS Express on our Developer machines. However when we deploy the…
Ogglas
  • 62,132
  • 37
  • 328
  • 418
10
votes
4 answers

How to Use AspNet.Identity core in My Sql database

I am developing one application using asp dot net core 2 using MySql database.Please help me How can i use Asp Net Identity in MySqlDatabase.
Rony Patel
  • 357
  • 1
  • 2
  • 14
10
votes
2 answers

Why is the IdentityUser class in the Microsoft.AspNet.Identity.EntityFramework namespace and not in the Core package?

Why is the IdentityUser class in the Microsoft.AspNet.Identity.EntityFramework package instead of being included in the Microsoft.AspNet.Identity.Core package? Why should it depend on EntityFramework? It seems to be a simple class. What am I…
Issa Fram
  • 2,556
  • 7
  • 33
  • 63
10
votes
3 answers

One to many relationship between AspNetUsers (Identity) and a custom table

I'm desperate trying to create an One to Many relationship between AspNetUsers table of Identity 2.0 and a custom table called Map (One user can have many maps, but a map can only have one user) I've tryied mostly every solutions available in this…
10
votes
4 answers

ASP.NET MVC5 - Keeping Users in Oracle Database

Once creating a ASP.NET MVC5 project (with target framework is .NET 4.5.1 and the authentication type is Individual User Account), so what is the most elegant way to configure the project so that it keeps the user, claims, roles etc. in an Oracle…
vahdet
  • 6,357
  • 9
  • 51
  • 106
10
votes
5 answers

ASP.NET Identity 2 Remember Me - User Is Being Logged Out

I am using Identity 2.1 in my MVC5 app. I am setting the isPersistent property of the PasswordSignInAsync to true to enable 'Remember Me': var result = await SignInManager.PasswordSignInAsync(model.Username, model.Password, true, …
Rhys Stephens
  • 889
  • 3
  • 20
  • 36
10
votes
3 answers

Custom UserManager not available in OAuthAuthorizationServerProvider

I'm implementing ASP.Net Identity 2 in a WebApi system. To manage email confirmation for new accounts, I had to create a custom ApplicationUserManager and register it so that it would be created for every request: public class IdentityConfig{ …
Brian
  • 1,675
  • 3
  • 19
  • 29
10
votes
1 answer

MVC - Asp.Net Identity. HOWTO log to DB when user logs in

I added a DateTime? LastLoggin property to my AppUser class. I like to set the property to DateTime.Now whenever the user logs in. Logs in using the login view or when automatic loggin in by cookies. What is the place to actually capture the login…
BrilBroeder
  • 1,409
  • 3
  • 18
  • 37
10
votes
3 answers

Stuck between two errors in an Azure OAuth2 token request

I am implementing an OAuth2 provider for OWIN and Azure Active Director. FWIW, at this time the OpenId Connect option doesn't fit the requirements for this work. I get an auth code, and returned to my reply url with the auth_code, state, and make…
10
votes
5 answers

Seeding Identity 2.0 database

I have an ASP.NET MVC 5 project (razor engine) which has Identity 2.0 with Individual User Accounts. I am using Visual Studio Professional 2013 I have not found any clear example (why doesn't it come out of the box?) of HOW I can seed the Identity…
Lord of Scripts
  • 3,579
  • 5
  • 41
  • 62
10
votes
2 answers

asp.net identity 2.0 unity not resolving default user store

i get the following exception when trying to configure Unity using Unity.Mvc5 with an MVC 5 application using Identity 2.0 and the Identity 2.0 Samples boilerplate. i have read this SO Configure Unity DI for ASP.NET Identity and i'm still not clear…
9
votes
2 answers

ASP.NET Identity 2.0: How to rehash password

I am migrating users from a legacy user store to ASP.NET Identity 2.0 in my ASP.NET 5.0 web application. I have a means of verifying legacy hashes, but I want to upgrade them at login-time to ASP.NET Identity 2.0 hashes. I've created a custom…
Brian Rak
  • 4,912
  • 6
  • 34
  • 44
9
votes
1 answer

asp.net core identity extract and save external login tokens and add claims to local identity

I am a stackoverflow noob so please go easy if I am doing this wrong. I am using asp.net core with the default core identity template (local accounts). I have accertained how to add claims to user principal when they login locally like…