Questions tagged [asp.net-identity-3]

The third 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 3 features. The [asp.net-identity] tag should be used if your question is not specific to ASP.NET Identity 3.

225 questions
1
vote
1 answer

How to mange user from class in asp.net core(identity 3.0.0 Rc1)

I just started asp.net core and now I want to manage users in a class in mvc 5 it's so easy like this code: var manager = new UserManager(new UserStore(new ApplicationDbContext())); var currentUser =…
1
vote
3 answers

Deploy WebApp to Azure with Zero downtime from VS2015

I'm trying to publish my web app from VS without no downtime. If you search in Google, you find the official documentation speaking about using slots and do a swap later. This is a good approach, but I have other problem when I do the swap, logins…
1
vote
0 answers

Login ASP.Net Identity 3.0 user to Identity 2.0 and generate JWT token

I am building a website using MVC 6 with ASP.Net Identity 3.0. But the API of the website was built in Identity 2.0. To connect with Web API I need to get the JWT token from API. Here comes the issues is, the OAuth provider in Web API authenticates…
1
vote
2 answers

No authentication handler is configured to handle the scheme Microsoft.AspNet.Identity.Application

I am using ASP.NET Identity with ASP.NET core and I have: services.AddIdentity(); This works fine when I login. But then I tried this setup: services .AddIdentity(x => { x.Cookies = new IdentityCookieOptions { …
1
vote
1 answer

Unable to sign-in because of Microsoft.AspNet.Identity.Application error

Just trying to get simple authentication working, but receive exception when trying to login: Seeded the DB with: user = new ApplicationUser { FirstName = "John", LastName = "Smith", UserName = "jsmith", Email = "jsmith@gmail.com", …
O.O
  • 11,077
  • 18
  • 94
  • 182
1
vote
0 answers

Create a hierarchical foreign key to Identity 3 ApplicationUser:IdentityUser

I am using Identity 3 in ASP.NET 5 RC1/Core I need to create a foreign key reference in the ApplicationUser that refers to the primary key of the ApplicationUser(IdentityUser) using EF Code First. I have tried public class ApplicationUser :…
devfric
  • 7,304
  • 7
  • 39
  • 52
1
vote
0 answers

ASP.NET 5 Identity customize AspNetUserRoles

I'm using ASP.NET 5 and MVC 6 and Identity. In Identity the AspNetUserRoles table hold the roles the users has. I need to modify AspNetUserRoles so I also include information about Organization, so a user have different roles in different…
1
vote
2 answers

How to access a session in in the _Layout without worrying it has expired

I am using ASP.NET Core & Identity 3. When I log in I read the current select user's UI template and in my _Layout.cshml file I load the css based off this template. The user can change his theme and I store it in a session variable via the…
1
vote
1 answer

ASP.NET 5 Identity 3.0 scalability with CookieAuthentication

I'm using ASP.NET 5 with MVC6. I am working with Identity 3.0, but I need to know how to make it works with many webservers. Is possible to store the session in other place? Database? In MVC5 you did that in the web.config, but I don't found…
chemitaxis
  • 13,889
  • 17
  • 74
  • 125
1
vote
0 answers

Using Identity Framework 3.0 from .Net 4.6 assembly

I am attempting to create and modify users and roles from a .Net 4.6 application using the new Identity Framework 3 (3.0.0-rc1) in ASP.Net 5. From what I can find when searching for an answer it should be as simple as: var roleManager = new…
Tedd Hansen
  • 12,074
  • 14
  • 61
  • 97
1
vote
1 answer

DbContext cannot find database

The connection string for our app is set in appsettings.json "Data": { "DefaultConnection": { "ConnectionString": "Server=(localdb)\\mssqllocaldb;Database=Customers;Trusted_Connection=True;MultipleActiveResultSets=true", In ConfigureServices we…
1
vote
2 answers

ASP.NET Identity 3.0 - how is the database with user tables created in an MVC application?

I am trying to build a simple login system from the ground up, using the code-first approach with ASP.NET MVC v5, Entity Framework v7, and Identity v3. I'm modeling my app after the ASP.NET MVC app with individual user logins template that Visual…
jmk22
  • 1,104
  • 4
  • 15
  • 27
1
vote
1 answer

User registration using ASP.NET Identity v3 - users and database are not created

I am trying to build a simple login system from the ground up, using ASP.NET MVC v5, Entity Framework v7, and Identity v3. All I want is for the user to create an account, and for that account to be saved in a database. I was able to get it working…
jmk22
  • 1,104
  • 4
  • 15
  • 27
1
vote
1 answer

new RoleManager error missing arguments in VS 2015

I want to implement User and Role Manager in VS 2015 using the Identity.EntityFramework": "3.0.0-rc1-final". Among others I have created a class IdentityManager. My main problem is creating a method to check the existence of a Role as…
1
vote
1 answer

Identity 3 reset password unable to login

I am using asp.net 5, MVC 6, Identity 3 with EF7 and everything updated to RC1 I have the following in my startup services configuration: services.AddCaching(); services.AddSession(); …