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
1 answer

ASP.NET Identity 2.0, self hosted OWIN, NTLM and application roles persistance

I'm currently trying to get my hands on ASP.NET Identity 2.0 and there are some aspects I'm not finding answers to: Here's my setup: WebAPI 2 self hosted with Nowin (I need full SignalR but my server's not running 2012 r2) A custom NTLM…
pysco68
  • 1,136
  • 9
  • 15
0
votes
1 answer

Access to WebAPI 2.2 from mvc application after Logging In

I have MVC 5 application that uses Form Authentication (the same as in default MVC 5 project template). The same project contains WebAPI 2.2 controller that provides some API the application uses. I would like to have two type of access to the API…
0
votes
1 answer

Why would an ASP.NET WebAPI back-end need Microsoft.Owin.Cors?

I find it very confusing as I know of three different Cors packages. Reading the following: How to make CORS Authentication in WebAPI 2? It would seem that a person with a similar architecture to mine is using Microsoft.Owin.Cors package on their…
Samantha J T Star
  • 30,952
  • 84
  • 245
  • 427
0
votes
3 answers

Asp.net MVC 5, Identity 2.0 Unable to add a Role to user

i am trying to add a role to a specific user using controllers. But, i am getting error Here my Role Controller: [HttpPost] [ValidateAntiForgeryToken] public ActionResult RoleAddToUser(string UserName, string RoleName) { ApplicationUser user =…
Prasanth
  • 51
  • 1
  • 3
  • 10
0
votes
1 answer

ASP.NET EF6 Identity 2 Update User Claims Error Updating For User

I have a web application in which I am using ASP.NET Identity 2 Claims for the access control list for Users of the site. I have all the claims available correctly in the ApplicationUser model, which has a Claims list. I am trying to clear the…
0
votes
1 answer

Is it possible to allow login only (no registration) with external providers in Identity 2?

I have a closed-registration site (set up as a resellers control panel). There is no way to sign up externally as the admin creates the accounts and dishes them out to users. I wanted to allow the user to attach their social accounts…
rtpHarry
  • 13,019
  • 4
  • 43
  • 64
0
votes
1 answer

How can I register IAuthenticationManager in Global.asax with StructureMap

I want register IAuthenticationManager in Application_Start() with this code: // x.For().Use(HttpContext.Current.GetOwinContext().Authentication); When I run my mvc5 project I get this error No owin.Environment item was…
M.Azad
  • 3,673
  • 8
  • 47
  • 77
0
votes
1 answer

How to customize ASP.NET Identity to handle users scoped within applications?

I am working on an application which records users who registers to access some resources on web pages. I'm using ASP.NET MVC 5 with ASP.NET Identity. I use the same value for Email and for a UserName. I have a table which store webpages. I added…
0
votes
1 answer

Incorrect validation message on Identity 2.0 registration form

In the 2.0.0 release issue 2040 was marked as Closed and Fix. When a user is registered and the email address already exists, the message returned is: •Name [] is already taken. •Email [] is already taken. This should read Username [] is already…
andy
  • 485
  • 1
  • 7
  • 16
0
votes
1 answer

EF 6 Code First ASPIdentity Tables in separate database

I'm using EF6 Code First. I have a class library "IdentitySecurity" that contains a context "IdentityDBContext" that points to an "IdentitySecurity" database and the IdentityModels. I then have my web project that contains a context…
clee
  • 121
  • 1
  • 8
0
votes
1 answer

aspnet identity 2 passwort reset token invalid on other subdomain

In my application I have an administration area where users can be created and a default password is set (the password must no be visible to the user creating the account). Im doing this by using the usermanager. var usermanager =…
Vanice
  • 676
  • 5
  • 15
0
votes
1 answer

Protect Downloads directory in Asp.net MVC + identity application

While waiting for solutions to my similar problem (Self-hosted Owin, static files and authentication) I would like to protect a directory serving static files within an MVC application with Asp.net Identity. How can I protect my Downloads directory…
fra
  • 3,488
  • 5
  • 38
  • 61
0
votes
1 answer

ASP.NET MVC default Identity Model merging with own entity framework code first mssql database

I looked at an article about extending the default asp.net mvc 5 Identity Model for register and login here My question is, how can I merge the default login system with my own entity framework code first database with the ability to extend the…
Mindless
  • 2,352
  • 3
  • 27
  • 51
0
votes
1 answer

DynamoDB Session State & Authentication in ServiceStack 4.0.32

This is a two part issue that resolves around a single objective: Get DynamoDB to work with ServiceStack (particularly, as a Session State Provider, and as an Authentication Provider). ..:: Requirements ::.. What I must do: Use DynamoDB for…
0
votes
1 answer

ASP.Net Identity application is looking for membership tables

I am working on application using Identity 2.0 and .NET Framework 4.5.1. It is giving me error Invalid object name [dbo.aspnet_SchemaVersions]. Why is it even looking for membership tables? I searched the net and most says that I should use…