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

Call to Action with Authorize(Roles="Customer, Business") returns 500 error for those roles

I have several actions in my MVC site that recently started returning authentication errors when I call them when logged in with accounts that have the authorized roles. An example below. [HttpGet] [Authorize(Roles = "Customer, Business")] public…
0
votes
1 answer

Relating tables to a Microsoft Identity User - has no key defined errors

I have followed the following and used ApplicationUser instead of creating my own. ApplicationUser comes from the default MVC 5…
Jimmyt1988
  • 20,466
  • 41
  • 133
  • 233
0
votes
1 answer

ASP.NET Identity 2.0 Users logged out after redirect through Docusign.com

I have a ASP.NET MVC5 web app that uses Identity Framework 2.0 for user administration. On the authenticated side of our app, the users fill out a series of forms, and then are sent through a Docusign in-session powerform. (Docusign Embedded…
0
votes
1 answer

What is the right way to show different picture depending on user

I'm making my first asp.net mvc application Forum system. I want before every thread to show picture that shows is there new post or not. Like other forums, if there is something new from last login to show one picture and if there is nothing new…
Producenta
  • 649
  • 1
  • 5
  • 17
0
votes
1 answer

How to check an ASP.NET MVC user is authenticated and authorized from a separate WCF service application?

I have two projects: An ASP.NET MVC 5.2 Application using ASP.NET Identity 2.2 A WCF Application SOAP XML service. Note: The WCF service is not hosted by ASP.NET, nor is it running in ASP.NET compatibility mode. A requirement of this project is…
Aalawlx
  • 593
  • 5
  • 25
0
votes
1 answer

Entity Framework: relate identity 2 user to product model

I'm using Web API 2 and Entity Framework 6 and Identity 2 I have product model which relates to an ApplicationUser model, where I create Product, I get an error: Additional information: An entity object cannot be referenced by multiple instances of…
Mo3in
  • 369
  • 1
  • 7
  • 19
0
votes
1 answer

Extending user profile with list of values

I extended my identity ApplicationUser profile (class) with list of values (Group model class): public class ApplicationUser : IdentityUser { public virtual ICollection group { get; set; } ... } As my Group class is defined in…
0
votes
1 answer

ASP.NET Identity 2.1 - Password Reset Invalid Tokens

ASP.NET Identity is returning an 'Invalid token.' response when resetting a password for users. I've tried the following: URL Encode the code before sending email URL Encode & Decode the code before and after Copying the code to make sure it…
Michael
  • 421
  • 2
  • 10
  • 23
0
votes
2 answers

Asp.Net Identity - SetPasswordHashAsync not working

I am stuck into a scenario which goes something like this. I am implementing Identity 2.0 with my new MVC application. I want to go with the database first approach with User Id as int. To accomplish this, I created Custom User Store - MyUserStore…
0
votes
1 answer

Editing roles using webforms

I'm having a hard time trying to setup the new aspnet identity using webforms. Currently I'm trying to setup an admin page in order to modify a roles after they've been created. So far I have this in my aspx page. It's the gridview that displays the…
Prescient
  • 1,051
  • 3
  • 17
  • 42
0
votes
1 answer

Storing often used user info in claim with Identity 2.1

Building an mvc site using Identity 2.1 and a custom user model. There's some info in the user model that I need in almost every controller. Calling FindByNameAsync each time hits the db more than I think necessary. If there are a few small strings…
Wavel
  • 956
  • 8
  • 31
0
votes
2 answers

ASP.NET Identity + Facebook login: Pass in "rerequest?"

(Using ASP.NET Identity 2.1, Microsoft.Owin.Security.Facebook 3.0.1 in a Web API project) From here: https://developers.facebook.com/docs/facebook-login/login-flow-for-web/v2.2 This is because once someone has declined a permission, the Login Dialog…
0
votes
1 answer

asp.net identity 2.1 google authentication

I'm using trying to use Google authentication in an ASP.NET MVC application. For testing purposes I'm using the template app generated by VS2013 Update 4 In Google settings the return URLs are properly set and Google+ API is turned on. The app…
cellik
  • 2,116
  • 2
  • 19
  • 29
0
votes
1 answer

How to verify email confirmation token generated by web service in web site

I'm using .NET 4.5 with a MVC5 5.2.2 web site and a Web API 2.2 service. The web site is using Identity 2.0, and I'm using MachineKey as a data protection provider. In the web site, I'm able to create new users, generate an email confirmation token…
0
votes
0 answers

EF6 Code First Migration Seed Method not able to create users

I have implemented Identity 2.1 with custom classes to make all of the entities to have integer keys. I have the following seed method in my configuration.cs file in the migrations folder protected override void Seed(ApplicationDbContext context) { …
HarryParker
  • 73
  • 1
  • 6