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

Create custom role handling in ASP.NET 5 Identity 3.0 (without EF)

I have successfully created a simple MVC 6 application which uses my own ApplicationUser, an ApplicationUserStore (implementing IUserStore and IUserPasswordStore) and ApplicationUserManager (extending UserManager). The login does now work perfectly.…
1
vote
1 answer

Third-party authentication using ASP.NET Identity 3

I'm building a WebAPI project using ASP.NET 5/CoreCLR. I have implemented Identity 3 and that works fine. I plan to allow users to use the WebAPI from either a browser or an app (mobile, or third-party like Kodi or foobar2000). I want to allow…
Astaar
  • 5,858
  • 8
  • 40
  • 57
1
vote
2 answers

MVC 5 Identity with external login has userLogins always 0

I have an MVC 5 site running identity with external logins. I've only slightly modified it to have f/l name and username separate from email. I am not registering a new user, I am simply logging in via Fackbook... (this might be the issue?) If I…
Beau D'Amore
  • 3,174
  • 5
  • 24
  • 56
1
vote
2 answers

Including Identity User with Entity Framework doesn't work

I am having trouble including my Identity User in query results. Other entities are included just fine, no matter how many levels deep. Here's the model I'm using. Building * --- 1 City * * | / | / 1 …
1
vote
1 answer

ASP.NET Identity / OAuth: How can I restrict the granted privileges to allow nothing but just to authenticate?

When I see OAuth samples for ASP.NET Identity it looks like they always grant some kind of privileges to the client application: I don't want any privileges to be granted. I just want a user to be authenticated. How can I set this to happen?
AxD
  • 2,714
  • 3
  • 31
  • 53
1
vote
0 answers

How to rewrite RefreshSign in ASP.Net Identity 2

Is there a way to rewrite this method from ASP.NET Identity 3 SignInManager with ASP.NET Identity 2? https://github.com/aspnet/Identity/blob/dev/src/Microsoft.AspNet.Identity/SignInManager.cs#L110 /// /// Regenerates the user's…
1
vote
1 answer

How to make vNext use my custom Identity code?

I want to implement a custom sign in system because my users are stored in a different database and I just have a dll to verify credentials so I don't want a database. I just want the ability to login (with roles: admin and user) and logout for this…
Mihai Bratulescu
  • 1,915
  • 3
  • 27
  • 43
0
votes
0 answers

Dual OpenIDConnect authentication (multiple authentication schemes)

Trying to wire up code to connect two OpenID accounts. The general idea is to default login to an Azure AD account and during the process ask the user to logon to a second OpenIDConnect. The intension is, later into the code, to grab the second…
0
votes
0 answers

Azure Active Directory with IdentityServer4 (Microsoft.AspNetCore.Identity.UI) - Step by Step Guide?

I have a .NET Core app which uses identityserver4 to authenticate users. I have integrated it with ASP.NET Identity (Microsoft.AspNetCore.Identity.UI) and this works fine. It uses the AspNetUser tables etc. to store users. etc etc and all the…
Philip Johnson
  • 1,091
  • 10
  • 24
0
votes
1 answer

ASP.NET Core Web App forced to login frequently

I've got an ASP.NET Core 3.1 Web App that uses ASP.NET Identity for authentication. Everything works fine when I run it locally, but when I deploy to a hosting provider I find that users are asked to log in very frequently (after only a few minutes…
0
votes
2 answers

IdentityServer4 can't add asp net core identity with custom user store

I'm trying to use my custom IUserStore implementation with IdentityServer4 + Asp Net Core Identity, the steps that I followed are creating new 'IdentityServer with Asp Net Core Identity' aka is4aspid template after removing EntityFramework assets…
0
votes
1 answer

ASP.NET Identity with Sustainsys Saml2 - How to persist ExternalLoginInfo Claims?

I have an ASP.NET Core app, targeting netcoreapp3.1, set up with ASP.NET Identity and the Sustainsys.Saml2.AspNetCore2 package. IDP-initiated SAML authentication is working fine, but I can't retrieve custom attributes/claims from the signed-in user…
0
votes
0 answers

how to create custom column in aspnetusers table using asp.net core 3.1 mvc?

I have created project using asp.net mvc 3.1 . I have used identity in my existing project. I want to add columns in aspnetusers table and used that table in code. How can i do that?
Sonakshi
  • 55
  • 1
  • 7
0
votes
1 answer

Understanding oauth external login authentication flow in ASP.NET Core Identity

I'm implementing Identity in ASP.NET Core 3 and having a bit of a problem understanding the flow of external login authentication, as are my users. Things start clearly enough: As expected I'm prompted to pick a Google identity: Now at this point…
Emilio
  • 1,951
  • 3
  • 18
  • 24
0
votes
1 answer

asp.net identity 3 - Reset password invalid token

I am setting-up a password reset functionality by sending an email with a reset link with asp.net core identity 3. My first post generates the token and the email body and send the email. 1 [HttpPost("requestPasswordReset")] 2 …