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

Create user without UserManager in Asp.Net Core Identity

On an ASP.NET Core 1.1 application with ASP.NET Identity I created a user: PasswordHasher hasher = new PasswordHasher(); User user = new User { Email = "john@company.com", Username = "john@company.com }; user.PasswordHash =…
Miguel Moura
  • 36,732
  • 85
  • 259
  • 481
2
votes
2 answers

ASP.NET Identity - how to change password requirements when creating user programmatically

I'm using default ASP.NET Core 1.1 template with Individual User Accounts authentication. The following code on VS2015 is complaining about the password requirements (such as length requirements, upper case, lower case etc.). I know we can set these…
nam
  • 21,967
  • 37
  • 158
  • 332
2
votes
1 answer

OpenIdConnect access_token size and accessing claims server side

I am trying to wrap my head around several concepts here but I don't want this question to be too broad - basically what we are trying to do is use role claims as permissions to lock down our API but I am finding that the access_token is becoming…
2
votes
1 answer

.NET CORE API Making Facebook Login Work With Openiddict/Identity

I have one project (Project A) which is a .NET CORE API project using Openiddict with an endpoint of /connect/token to issue JWT tokens using Identity to handle the security etc. This project works great as is. I have another project (Project B),…
2
votes
0 answers

Use third-party token from services such as Twitter Digits to register/sign-in user

Our app requires sign-in by either mobile number or Google. We are planning to Twitter Digits for mobile number authentication. The flow of registration and authentication as I understand is as below: Mobile app does rich authentication with…
2
votes
1 answer

Manage Custom User Properties at ASP.NET Identity 3 in MVC 5

I'm currently practicing ASP.NET Identity 3.0 in MVC 5 - Followed a few tutorials and created a MVC project, I've managed the following so far: Added custom properties at Registration page Converted User ID from string to int Migrated and amended…
Eva
  • 113
  • 2
  • 9
2
votes
1 answer

Custom Authentication with external web service in ASP.NET Core

I have an external web service which holds the user data & I need to use that to log user in. I would like to use existing AccountController + UI views if possible. I tried adding custom SignInManager class to override PasswordSignInAsync as…
SamJackSon
  • 1,071
  • 14
  • 19
2
votes
2 answers

User.Claims.FirstOrDefault().Value is null at Login action (ASP.NET Identity 3)?

I am trying to get the "id" value from User object at Login action after creating a default ASP.NET Core with "Individual User Account" and it is always returns null. the line is (var objUser = User.Claims.FirstOrDefault().Value;) [HttpPost] …
AG70
  • 874
  • 1
  • 9
  • 23
2
votes
2 answers

Cannot Login to Microsoft Personal Account with Microsoft OAuth v2

I am trying to integrate Microsoft account login to my ASP.NET Core application. I have setup a microsoft application in the Microsoft Application Registration portal with the given redirect URI. Here is a snippet from the Startup.cs file. // Add…
2
votes
1 answer

IdentityDbContext on Sqlite

I have been trying to use sqlite for IdentityDbContext with no luck, I am using .net core in macosx. I wonder if it's actually possible or if there is any example out there tried to search google with no luck.
2
votes
1 answer

Wrong HttpContext in Policy

We use a custom Policy to check some database requirement (a token persisted in database), and I need session informations so I injected IHttpContextAccessor to use HttpContext.Session. public TokenValidHandler(IHttpContextAccessor…
Christophe Gigax
  • 3,211
  • 4
  • 25
  • 37
2
votes
1 answer

Using a Custom UserStore and RoleStore in ASP.NET 5

I have implemented a custom RoleStore and a custom UserStore for my project that is using ASP.NET 5, MVC 6, EF 7, and Identity 3. However - I can't quite figure out how to configure identity to use my custom RoleStore and custom UserStore instead of…
Liam M
  • 5,306
  • 4
  • 39
  • 55
2
votes
2 answers

Changing Identity 3.0 table names in ASP.NET Core MVC6 not working

This same question was asked and has not been answered after 12 days... I have looked at this which uses "ToTable" as an update to the question. I have looked at this which appears to be out of date. I want to change the table names of the…
si2030
  • 3,895
  • 8
  • 38
  • 87
2
votes
1 answer

Action method to delete a user with ASP.NET Identity 3.x

Here is my action method to delete a user: I feel like it is blocking since I am using user.Result to pass the actual user object from one async result to the next async method. Is there a better way to do this? // POST: Users/Delete/5 [HttpPost,…
Blake Rivell
  • 13,105
  • 31
  • 115
  • 231
2
votes
1 answer

Setting up UserRole management with MVC6 and the new Identity

I have a new asp.net (core 1.0) mvc6 web application with the latest version of identity 3.x. I am trying to figure out what I have to do on my own and what is already plug and play for me with Identity 3.x. Here is my goal: I want to create the…
Blake Rivell
  • 13,105
  • 31
  • 115
  • 231