Questions tagged [asp.net-identity]

The ASP.NET Identity system is designed to replace the previous ASP.NET Membership and Simple Membership systems.

The ASP.NET Identity system is designed to replace the previous ASP.NET Membership and Simple Membership systems. It includes profile support, OAuth integration, works with OWIN, and is included with the ASP.NET templates shipped with Visual Studio 2013.

ASP.NET Identity uses code-first Entity Framework to allow for maximum customization through class manipulation, annotation, and new fluent API.

Useful links

8860 questions
4
votes
2 answers

redirect to different pages based on user role in ASP.NET MVC 4 Internet Application Login

I'm creating ASP.NET MVC 4 Internet Application. In that Application I created Login Page that any user can log, then I'm Trying to redirect user to different pages based on their role. ASP.NET Identity is the membership system here. In my…
kez
  • 2,273
  • 9
  • 64
  • 123
4
votes
1 answer

mvc authentication against web api middle tier

I currently have a web api 2 project acting as my applications middle tier. I need to secure this project as well as provide an authentication service for my MVC project and potentially iOS and Android applications. The web api business logic…
Stig
  • 1,169
  • 1
  • 9
  • 12
4
votes
2 answers

Is ASP.NET Identity userid a sequential guid

The ASP.NET Identity code for MVC/EF stores the userid as a nvarchar(128). This looks like a GUID. I prefer using sequential GUIDs for an ID/Private Key to improve performance. How can I verify that the code generating the GUID for ASP.NET…
Bill
  • 314
  • 1
  • 10
4
votes
1 answer

ASP.net Identity 2.0, how to delete user but restrict username from being used again?

I have a site using ASP.net identity 2.0 for user management with a few external authentication options as well (google,facebook,etc). I want to give users the option to delete their account. I found a good example of how to implement this in this…
4
votes
2 answers

ExternalSignInAsync - when does it return SignInStatus.RequiresVerification?

I am using the standard MVC template from VS 2013 and using logins with External Ids, ie Google, Facebook, etc. In AccountController.ExternalLoginCallback, it calls SignInManager.ExternalSignInAsync and the result can be one of SignInStatus.Success,…
Old Geezer
  • 14,854
  • 31
  • 111
  • 198
4
votes
1 answer

How to use AddExternalLogin method from WebAPI template

I use Web API template. My target is REST service with Facebook, Twitter, and Google registration and authorization. I can create account using social networks, but can't add another social network login to existing account. Specifically, the…
4
votes
1 answer

Make ASP.NET Identity 2.0 Email confirm token work for WCF and MVC

I have a service project (WCF) and MVC project which uses same database, to handle service part for Mobile and Interface part. I have to set up email confirmation on both. I have used OWIN ASP.NET 2.0 library for authentication, and both projects…
Ruchan
  • 3,124
  • 7
  • 36
  • 72
4
votes
1 answer

Is it Possible to create two separate Identity tables for Storing Separate Login information in Asp .Net MVC 5

I am a beginner in Asp.net MVC framework. Can Asp.net MVC 5 allows to create two separate identity tables which has independent columns for storing two different user information including username and password. Store schema as follows Stores…
4
votes
0 answers

UpdateSecurityStampAsync equivelant for OAuthBearerTokens in ASP.NET Identity

(ASP.NET Identity 2.1) There exists a method, UpdateSecurityStampAsync, which will invalidate the stored login cookie that the client uses to login. But many applications use this cookie-type authentication in conjunction with OAuthBearerTokens: …
BenjiFB
  • 4,545
  • 10
  • 46
  • 53
4
votes
1 answer

Reason for changes to ASP.NET Identity code in ASP.NET SPA template?

For an ASP.NET SPA app, the code template that ships with VS2013 is very different from the code template that ships with VS2013 Updates 2/3/4. For reference, here's the same template from VS2013:…
4
votes
2 answers

Password reset without entering email (ASP.NET Identity)

Current ASP.NET Identity password reset (through email verification) requires a user to enter e-mail and a new password to be reset. However, in most cases of a password reset, only a new password is required. How could this be done? I found that…
eulercode
  • 1,107
  • 4
  • 16
  • 29
4
votes
1 answer

How to structure a new ASP MVC app?

I need to start a new mvc project and as always I have issues about asp identity, never know where to put it! I plan to organize solution like this: ProjectWebUI - mvc app with asp identity framework (made from internet template with…
1110
  • 7,829
  • 55
  • 176
  • 334
4
votes
1 answer

How can I handle email confirmation URLs in an Identity 2.1 SPA Angular JS Application?

I have seen an example that uses MVC. It has a return URL which comes up with a screen that is called from the email sent out. But I have an SPA AngularJS application so it is a bit different. Has anyone tried to do this with a SPA and if so how…
Samantha J T Star
  • 30,952
  • 84
  • 245
  • 427
4
votes
1 answer

ASP.NET Identity: Make other fields in AspNetUsers unique key

I'm working on the ASP.NET Identity. By default, the AspNetUsers table comes with a few columns such as: ID, UserName, HashPassword, Email, EmailConfirmed, Phone etc. By default, the ID column is the Primary Key and UserName has the Unique…
C.J.
  • 3,409
  • 8
  • 34
  • 51
4
votes
3 answers

AddToRole() returns "User name can only contain letters or digits" only when users email address contains a dash

I'm using Asp.Net Identity 2.0, configured so that the users' email address is also the username, so in IdentityConfig I have set AllowOnlyAlphanumericUserNames = false in the ApplicationUserManager constructor: public class ApplicationUserManager :…
Josh Bula
  • 373
  • 4
  • 16