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
0
votes
0 answers

How to execute code on signin / signout in ASP.Net Identity

I'm adding ASP.Net Identity to an existing site and I need to be able to record in an audit trail when a user signs in and signs out. Are there any events or methods that I can override that are triggered when a user successfully signs in or out but…
Mog0
  • 1,689
  • 1
  • 16
  • 40
0
votes
1 answer

When I try navigating to third level entity properties, I can't find Select method with lambda expression inside Include method

I have a problem about accessing third level navigation properties in my context. I have searched a lot for two days but could not find any issue close to mine. So I thought that I have a logical mistake about my approach. I use the MVC template…
0
votes
2 answers

ASP.Net Identity. UserManager.CreateAsync Throws Error: Value cannot be null. Parameter name: request

I am trying to create a user by calling register function within the application. This function works fine when the function is called as a API. When Called from Inside the application it throws an error AccountController ac = new…
Veerendra Prabhu
  • 139
  • 1
  • 3
  • 12
0
votes
0 answers

Why does ASP.net Identity's IdentityDbContext have a dependency on SQL Server?

If you look in the source there's a solid SqlCommand in there. (Why do I need to even look in the source to find this out?) Doesn't this in part defeat the point of using Entity Framework. i.e. to abstract away the database? Couldn't they have a…
Ian Warburton
  • 15,170
  • 23
  • 107
  • 189
0
votes
1 answer

Web application breaks when user added to role

Using Identity 2.0 with a Web Forms project. I can login successfully, and control access to pages using , but when I add a user to a role in AspNetUserRoles, it causes the application to return this error: The…
Rhyss
  • 1
  • 1
0
votes
1 answer

Seeding Admin account with Identity 2 in .Net without Entity Framework

I'm looking for advice here. I have Identity 2 set up on my application. In Dev we use Entity Framework but in our test environment we update the database using SQL scripts, due to DBA policies. I need to initially seed an Admin user the first time…
Jeff Finn
  • 1,975
  • 6
  • 23
  • 52
0
votes
1 answer

Signout all users with the same username asp identity

I have recently implemented the asp identity system in to my website. Now for the fact that I dont want my users to use accounts between themselves I want to log out people with the same username. I noticed that I have a AspNetUserLogins and…
misha130
  • 5,457
  • 2
  • 29
  • 51
0
votes
0 answers

ASP.NET Identity Entity Framework for multiple applications

the new db schema does not contain a table for storing applications and associating claims along with it. so is the recommended practiced to have a claim type 'Application' where a user can have zero or more records? What about permissions?…
0
votes
0 answers

Create users with different tenantId from website with own tenantId in identity?

I have a backend website (ASP.NET MVC) that has his own tenantId (ASP.NET Identity) and this website can create users for other websites with their own tenantId's (all Tenant's are in the same database). The problem is that when i use the Create…
Phoenix_uy
  • 3,173
  • 9
  • 53
  • 100
0
votes
1 answer

How do you access this property from the OwinStartup file?

I'm creating an ASP.NET Identity 2.1 WebAPI service. It allows for registration, logging in and authorizing authtokens. In the Owin startup class that I have created following this tutorial is the following code: public class OwinStartup { …
yesman
  • 7,165
  • 15
  • 52
  • 117
0
votes
1 answer

MVC OWIN Anonymous User Shopping Cart

I want to know best practice on how to create Shopping cart using MVC 5 Owin Identity with support anonymous users. Example: So both logged in and anonymous user can select products. For logged in user all is ok, I have userId and can create cart…
Vladimir Rodchenko
  • 1,052
  • 15
  • 25
0
votes
0 answers

Identity 2.0 Web Api, iOS and Android Clients Facebook app approval always rejected

Here is our setup: 1) a Web Api project with ASP.NET Identity 2.0 with external login support for Facebook. 2)A native iOS App and a native Android App We are using the appid and secret in the web api and the identity Facebook authorization options.…
0
votes
0 answers

ASPNET Identity Caching with Dependency Injection

I am using Ninject in an MVC application with ASPNET Identity 2. Log in, log out, updating password etc are all working fine. However if I update the user's name in the database, the ApplicationUserManager seems to be caching the user…
0
votes
2 answers

Identity 2.1, asynchronous programming, and updating additional user data

I understand what asynchronous programming is, but I have a hard time actually implementing it in my code. Identity 2.1 generates the CRUD methods and I want to add some code to it. How can I get the LINQ update to save? Do I need to use await? …
JoshYates1980
  • 3,476
  • 2
  • 36
  • 57
0
votes
2 answers

asp.net mvc 5, entity framework 6 code first, Identity 2.0. How to set navigation property to model object?

It should be something simple, not sure why I couldn't find the solution on the web. Maybe it's specific to EF6 or ASP Identity or, maybe I'm entering wrong search key words. To simplify things, let's say I have two model classes Teacher and Kid;…