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
3 answers

How to check whether the "User" has a confirmed E-mail inside ASP.NET Identity (Web Forms)?

On my login page I want to implement a system, whereby if the user exists but doesn't have a confirmed email (IsEmailConfirmed), the user needs to verify/confirm the email. I don't have any problem re-sending the confirmation code, my issue is…
Kevin Maxwell
  • 907
  • 2
  • 19
  • 38
4
votes
1 answer

ASP.NET Identity OAuth token string allows last character to be changed

Using ASP.NET Identity, WebAPI, and UseOAuthBearerTokens public void Configuration(IAppBuilder app) { app.UseOAuthBearerTokens(new OAuthAuthorizationServerOptions { AllowInsecureHttp = true, …
4
votes
0 answers

OAuth without Asp.net Identity

This is a subjective / design level question. I am implementing OAuth JWT authentication / authorization mechanism for my web api. I have my own user store which is held in a sql server database. WebApi template has lots of ASP.NET identity specific…
4
votes
1 answer

optimize asp.net identity GetUserManager

In asp.net web api identity: In ApplicationOAuthProvider.cs, There is a method: var userManager = context.OwinContext.GetUserManager(); This one method itself takes 4 seconds but the underlying query takes only 170…
Satyajit
  • 1,971
  • 5
  • 28
  • 51
4
votes
1 answer

How to access Facebook profile information by using ASP.NET MVC 5

I am developing a basic web site in ASP.NET MVC 5 (using visual studio 2013). The site will use Facebook for user authentication and for retrieving initial profile data.like stack over flow login with facebook..access user name,profile photo…
4
votes
1 answer

Are there any implementations of ASP.NET Identitity that have another level above account?

I am using ASP.NET Identity. It works well but I would like to add in a parent to the AspNetUsers table. In my case I would like to have each user belong to an organization. At this point I am just looking for some ideas to see if others have seen…
Samantha J T Star
  • 30,952
  • 84
  • 245
  • 427
4
votes
2 answers

Exposing ASP.NET Identity Services in DDD

We are developing a DDD based application developed using ASP.NET MVC, C# and EF6. It has been decided to implement the Authentication and Authorization using ASP.NET Identity Service... I have a few doubts regarding that; Under which category…
4
votes
2 answers

ASP.NET Identity - Using Roles with JavaScript Functionality

I have an application using JQuery DataTables. I want these tables to display for every user, but only allow the click functionality for users in a specific role. So, I can set up authorization on the controllers with this... [Authorize(Roles =…
madvora
  • 1,717
  • 7
  • 34
  • 49
4
votes
2 answers

Update Claims after user login

Is it possible to update claims after user login? I have frontend and admin panel in my site, basically I'm using claims to achieve this. If a user is logged in as Susan in frontend, I did something like this in my code : var userIdentity = await…
tickwave
  • 3,335
  • 6
  • 41
  • 82
4
votes
1 answer

EF7 Identity not loading User extended properties

I have an extended IdentityUser class which contains a reference to another entity on my DB, but whenever I try to get the User with the UserManager, the referenced entity always comes empty: My implementation of the User class public class Usuario…
edua_glz
  • 1,177
  • 2
  • 12
  • 23
4
votes
2 answers

Asp.Net Identity find users not in role

I need to find all users that DONT'T contain a certain role, using Asp.Net Identity. So far I have something like this but it is not working. (From role In context.Roles From userRoles In role.Users Join us In context.Users On us.Id Equals…
goroth
  • 2,510
  • 5
  • 35
  • 66
4
votes
1 answer

How to define multiple partial Owin Startup classes and have them all run their code

I'm working on an MVC application that will feature a "plugin" architecture. Basically there will be a main "host" project that will dynamically load other projects at runtime. We want to move all ASP.NET Identity related stuff into its own separate…
thiag0
  • 2,199
  • 5
  • 31
  • 51
4
votes
1 answer

What set's the User.Identity.Name and User.Identity.IsAuthenticated?

I want to know what set's the user identity name and change isAuthenticatedto true. Why is User.Identity.Name an empty string and User.Identity.IsAuthenticated false after SignInManager.PasswordSignInAsync has returned Success. // POST:…
radbyx
  • 9,352
  • 21
  • 84
  • 127
4
votes
1 answer

Simple Injector Identity UserManager Registration Error

I am following Onion Architecture and using Identity Framework. In my Core project, I have: public interface IUserRepository : IDisposable { // Repository methods....... } In my Architecture.Repository, I have public class UserRepository :…
4
votes
1 answer

How to migrate from SimpleMembership to ASP.NET.Identity

Migrating from MVC4 to MVC5 and want to use ASP.NET Identity too but I am struggling to find anything that covers everything I think I need to do to migrate the Identity. Migrating an Existing Website from SimpleMembership to ASP.NET Identity…
Colin
  • 22,328
  • 17
  • 103
  • 197