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

DefaultAuthenticationTypes.ApplicationCookie persist after server reboot

I am using mvc 5 with external log in with facebook, but after every server reboot, the user would be logged out of the system. That defeats the purpose of oAuth? I can't find any properties to make them persist through reboots this is how the…
Lee Gary
  • 2,357
  • 2
  • 22
  • 38
4
votes
1 answer

ASP.Net Identity provider requesting too much info

I have asp.net indentity working fine. However when a user logs in, Google asks the user if it's OK to provide the following information: - View your email address - View basic information about your account The problem is that I don't even want…
vidalsasoon
  • 4,365
  • 1
  • 32
  • 40
4
votes
2 answers

Asp.Net MVC5 How to ensure that a cookie exists?

I'm new to MVC (5). In order to add localization support to my website I added a "Language" field to my ApplicationUser : IdentityUser What's the best approach to now store this information in the browser and ensure that it gets re-created even if…
Vland
  • 4,151
  • 2
  • 32
  • 43
4
votes
2 answers

User profile image asp.net mvc identity

I'm creating a web application using MVC 5 and Identity. I have so far created a registration system, but I would like to allow users to upload a profile when they register. I was wondering if it is possible to implement profile pictures with…
4
votes
2 answers

Using ASP.NET Identity for a Role Provider easily

I just spent the last two days researching and implementing the new ASP.NET Identity system with my existing database. More on that here: Integrating ASP.NET Identity into Existing DbContext. Now, I have a working UserStore and RoleStore, but I…
Gup3rSuR4c
  • 9,145
  • 10
  • 68
  • 126
4
votes
1 answer

ASP.net Identity - How does UserManager Have Access To Roles?

... and we're only inside Microsoft.AspNet.Identity. (We're not even looking at the base implementation at Microsoft.AspNet.Identity.EntityFramework.) The UserManager class only takes in an IUserStore at constructor. It does not have an…
Mickael Caruso
  • 8,721
  • 11
  • 40
  • 72
4
votes
1 answer

Customize UserLoginInfo in Asp.Net Identity

The UserLoginInfo in Asp.Net Identity is a sealed class with only two attributes: LoginProvider and ProviderKey I'd like to add one additional information (such as email for example) to it so that it makes more sense to the user when managing their…
BlueFox
  • 950
  • 13
  • 29
4
votes
1 answer

Entity Framework caching in aspnet Identity

I'm building a project in EF6 and aspnet Identity. I'm facing the following problem: if I call var account = await FindByNameAsync(userName); // account.IsConfirmed = true I get the account I'm looking for (example: isConfirmed = true). When I…
Team-JoKi
  • 1,766
  • 3
  • 15
  • 23
4
votes
1 answer

Asp.net Identity - How to Login Regardless of Discriminator

Im using asp.net identity and I have a number of user classes that inherit from IdentityUser. Lets say I have an inheritance chain like: IdentityUser <- AppUser <- ServiceUser <- ServiceEmployee and ServiceCustomer (which both inherit from…
jmichas
  • 1,139
  • 1
  • 10
  • 21
4
votes
1 answer

ASP.NET Identity and SignalR

I'm trying to use ASP.NET Identity and SignalR (2.0.1) in new default project. When I comment line app.MapSignalR(); in class Startup, login is working perfect. I get "user" in method LogIn, username of logged user is show on page (via…
4
votes
3 answers

Extending MVC5 and Entity Framework 6 ApplicationUser causing invalid column error on user registration

I'm trying to extend the ApplicationUser class so that I can contain UserProfile information in a separate table. However I'm having trouble getting this to work and am getting an exception when I call the UserManager.CreateAsync method in my…
dreza
  • 3,605
  • 7
  • 44
  • 55
4
votes
2 answers

How to protect ASP.NET Web API 2

I need to implement ASP.NET Web API 2 i.e. [RoutePrefix("orders")] public class OrdersController : ApiController { [Route("{id}")] public Order Get(int id) { } [Route("{id}/approve")] public Order Approve(int id) { } } I am…
NoWar
  • 36,338
  • 80
  • 323
  • 498
4
votes
2 answers

Login Attempt in ASp.net Identity MVC5

In Simple Membership Provider we could do something like below to track number of invalid attempt of login . WebSecurity.IsAccountLockedOut(userName, allowedPasswordAttempts, intervalInSeconds) This is not Supported in ASP NET Identity…
Justin Homes
  • 3,739
  • 9
  • 49
  • 78
4
votes
2 answers

ASP.NET Identity - What method creates the tables?

When you create a new MVC5 project in VS2013 with Individual User Accounts, the account tables (dbo.AspNet*) are created automatically in the database defined by the DefaultConnection the first time you try to log in or register a new account. Does…
4
votes
1 answer

Using ASP.NET Identity on MVC 5 project but httpcontext User.ProviderName is "AspNetSqlRoleProvider"

I have a MVC 5 project using ASP.NET Identity (Invidual user account). As Database ORM I am using Entity framework 6 and IoC is taken care by Ninject. Solution structure is following MVC project -- has my controllers, views and ninject setup. For…
Vili
  • 888
  • 1
  • 10
  • 25