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

ASP.Net MVC Identity Forgotten Password

I have setup a quick page to accept an email address which will send an email to it which will later contain a link to reset password or a new temporary one. My project is a new ASP .Net MVC project using Identity. I thought the best way to reset…
user1166905
  • 2,612
  • 7
  • 43
  • 75
4
votes
1 answer

How do I extend IdentityRole using Web API 2 + AspNet Identity 2

I am attempting to extend the AspNet IdentityRole class provided in the Web API 2 (With Individual Accounts) template in the latest version of Visual Studio 2013. When I hit /api/roles it returns an empty array Identity Models namespace…
4
votes
1 answer

Bearer Token - Two Factor - ASP.NET Identity

I have implemented ASP.NET Identity 2.0.1 and I am using two-factor authentication for web based sign-ins and I am quite pleased with its usage and overall security. However for mobile based devices which access the same web sites via the WebAPI…
plippard
  • 375
  • 2
  • 3
  • 17
4
votes
0 answers

Asp.Net Identity 2.0 Custom Storage Provider using Dapper

I know this description is a bit lengthy, but its easy to follow. I have created a custom storage provider which uses Dapper as a replacement for Entity Framework. To do so I've created a class library called AspNet.Identity.Dapper. The Web app…
sfuptown
  • 277
  • 1
  • 5
  • 14
4
votes
1 answer

asp.net identity authentication with Instagram

I am running the asp.net identity with MV5 which gives users the option to authenticate with external services such as Google, Facebook and many others. I installed the owin.security.providers so that I can use the Instagram authentication. With…
Gloria
  • 1,305
  • 5
  • 22
  • 57
4
votes
2 answers

Rolemanager always null in Identity 2.0

I see this question out there. but the answer doesn't work for me. I created an empty asp.net website. .NET 4.5 I installed the sample in nuget via Install-Package Microsoft.AspNet.Identity.Sample -pre I could not get the initializer to run. so…
Joe
  • 721
  • 9
  • 22
4
votes
2 answers

MVC Identity - How To Logout Users ? Security Stamp?

I use MVC(4) with Identity (2.0) and my webapp have a page for admin to manage users. One functionality of the admins is to inactive(freeze) a user account the way I implemented it: Add a field in my DB called 'Active' and if the admin is…
Ron
  • 1,744
  • 6
  • 27
  • 53
4
votes
1 answer

null HttpContext inside SendAsync method of IIdentityMessageService

I have a piece very simple code that used to work before I tried upgrading to ASP.NET Identity. This is a real head-scratcher. Using ASP.NET MVC 5 with ASP.NET Identity 2.1 (latest-and-greatest at the time of writing this post) I have a "user…
Dimitar Velitchkov
  • 342
  • 2
  • 4
  • 9
4
votes
1 answer

Using OWIN Identity v2 Claims to track custom properties in WebAPI2 app

getting my head wrapped around the new Identity framework and am trying to figure out how best to handle custom user properties. I have tried extending the IdentityUser, which works to store the information, but so far is requiring an additional db…
4
votes
1 answer

Web API External Bearer Unauthorized

I am trying to call the RegisterExternal method in Web API, after having retrieved a token from facebook. But I keep getting a 401 Unauthorized from my Web API. I am not sure I am correctly implementing the logic flow. My code is; Ask for…
creatiive
  • 1,073
  • 21
  • 49
4
votes
0 answers

MVC 5 Identity and Google Auth consent screen - minimal permissions and no email

When signing in to Stack-overflow, for example, you get the following consent screen: 1.In my consent screen settings I must give my email. How can I make it so that no email is displayed or a non-gmail email address is displayed ? 2.My…
Yaron Levi
  • 12,535
  • 16
  • 69
  • 118
4
votes
1 answer

ASP.NET Identity: UserManager.PasswordHasher.VerifyHashedPassword keeps failing

I'm using ASP.NET Identity 2 with Entity Framework 5 (because our Oracle data provider does not support EF6). For some reason the password verification by means of UserManager.PasswordHasher.VerifyHashedPassword keeps failing. My UserStore class…
Windowlicker
  • 498
  • 11
  • 18
4
votes
2 answers

Can we use Asp.Net Membership and Role Provider in MVC 5

I'm converting a MVC 3 application to MVC 5. I've been reading on web that MVC 5 comes with Asp.Net Identity for security. My question is that is possible, feasible and good to use old membership and role provider in MVC 5 application. Can anyone…
Ahsen
  • 386
  • 4
  • 18
4
votes
2 answers

OnValidateIdentity session is null - Mvc Owin

Currently, I have problems when access Session in OnValidateIdentity - HttpContext.Current.Session is null. What's wrong? My application as below: I have 2 project : Mvc vs WebApi I want user will logout when I changed password -> change security…
4
votes
2 answers

How to access Identity UserManager in Web API Controller to Send an Email

I am using Identity v2 and need to send an Email from Web Api Controller using the UserManager.SendAsync method which is OWIN Middleware component. But I don't know how do I access the UserManager itself in Web Api Controller Method. I am trying a…
Ammar Khan
  • 2,565
  • 6
  • 35
  • 60