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

1064 questions
0
votes
0 answers

Prevent External Login redirect writing cookies using ASP.NET Identity 2

Apart from finding the newish ASP.NET Identity 2 system bulky and confusing. I'm just trying to do something simple, provide the oAuth credentials, and login with facebook. After getting this working, the response writes a massive 'state' string and…
simbolo
  • 6,543
  • 4
  • 46
  • 86
0
votes
0 answers

How to implement a user with different roles depending on facility

Excuse the title as this situation is difficult to explain. Imagine a business with multiple facilities, and each user's roles are directly tied to a facility. Therefore, each user has different permissions for each facility, modeled by the use of…
Josh McKearin
  • 720
  • 4
  • 16
  • 39
0
votes
1 answer

I have roles Seeded - but Roles.GetAllRoles doesn't work?

Ok I have seeded some roles which can be found in the SQL database in the table AspNetRoles and the users can be found AspNetUsers. I have also found a bunch of aspnet_ tables (I think they are old WebForm ones). Within a view I am calling…
Dave Gordon
  • 1,765
  • 2
  • 26
  • 47
0
votes
1 answer

Web API Token Authentication Throwing Context Errors

I'm getting errors on relations not having a key. (I posted full errors below). But these errors only occur when I hit the /Token endpoint which is using some prebuilt Microsoft code to run it. I did notice that to get my Token endpoint working I…
JayPrime2012
  • 2,502
  • 4
  • 22
  • 39
0
votes
1 answer

ASP.NET IDENTITY WEB FORMS

OK. I am experiencing something very strange with the asp.net identity in web forms. I setup the web.config file to establish connection to my local sqlexpress server. I previously created a database and ran the web application which uses asp.net…
0
votes
1 answer

Get first/last name, city, etc from facebook, google login?

When implement external login for Facebook/Google. The following code can get email. Is it possible to get First name, Last name, City, etc.? // loginInfo has the type of Microsft.AspNet.Identity.Owin.ExternalLoginInfo var loginInfo = await…
ca9163d9
  • 21,678
  • 35
  • 151
  • 304
0
votes
1 answer

How to get an Owin UserManager

I want to ask Owin if a user exists. Putting together random stuff I've found online, I end up with this (totally untested code): /// Returns true if the TestUser user exists in the membership database. public static bool…
0
votes
0 answers

how to convert [RouteData] string categoryName to .net 4.0 version?

My code to display productlist in .net identity for asp.net 4.5 webforms is shown bellow. I try to use this code in .net 4.0 and can not correct error about [RouteData] ! public IQueryable GetProducts( …
0
votes
1 answer

Check if a user is authenticated using ASP.NET Identity 2

I am using ASP.NET Identity 2 to manage users and would like to know if there is a function available through UserManager to check if a particular user is authenticated or logged in currently. By this I mean, for an administrator of the site to…
user2813261
  • 555
  • 6
  • 16
0
votes
1 answer

ASP Identity 2.0.0 usermanager calling wrong method?

I have implemented a custom UserStore for my ASP MVC project (with Identity 2.0.0, which I use for it allows the use of integer keys). The Usermanager is not custom implemented, but the Microsoft.AspNet.Identity.Usermanager implementation. When I…
Cloud
  • 435
  • 1
  • 10
  • 30
0
votes
1 answer

How to add Identity 2.0 users to an object

So I am trying to grasp EF6 and it's use of Identity 2.0 for making a many to many relationship. It is Visual Studio 2013 and the MVC 5 template. I have a fresh MVC app with the following models: public class Meeting { public Guid MeetingID {…
0
votes
1 answer

Signing out External Cookies before Signing in ApplicationCookie - OWIN

I am currently studying the new ASPNET Identity and Owin Authentication so that I can customize it for my own use. I just created a default MVC 5 Application and came across this piece of code private async Task SignInAsync(ApplicationUser user,…
Ody
  • 1,950
  • 4
  • 22
  • 32
0
votes
1 answer

Does Identity use the MAC address when defining the Model

I'm using Asp.Net Identity 2.0.1. If i copy a database from one development environment to another i get the following error. When i login to my application (). The Model backing the 'ApplicationDbContext' context has changed since the database was…
Tim
  • 7,111
  • 12
  • 57
  • 98
0
votes
1 answer

Is it possible to use asp.net identity with an existing collection of usernames and passwords?

I currently have a site that is using a handrolled authentication system of usernames and passwords - I do not have the ability to change the current database tables which store the usernames and passwords (the system has been in place for a long…
Steve French
  • 877
  • 3
  • 12
  • 36
0
votes
2 answers

Model compatibility error

Setup I have an app that uses ASP.NET Identity 2.0. The identity part shares a database with the rest of the tables needed by the application. So in one class library, I have a dbcontext that accesses the database for business data, and in another…
awrigley
  • 13,121
  • 9
  • 78
  • 125
1 2 3
70
71