Questions tagged [asp.net-identity]
The ASP.NET Identity system is designed to replace the previous ASP.NET Membership and Simple Membership systems.
asp.net-identity
9,063
questions
0
votes
0
answers
5
views
.NET identity database model confusion regarding Roles and Claims
I'm using ASP.NET Identity to implement authentication and authorization in my web API app. I'm a bit confused with the good old Roles vs Claims question, and I have not yet found a clear answer.
From ...
0
votes
0
answers
33
views
Unable to get an access token from a blazor web app
I am creating a blazor web app is using microsoft examples for authentication.
Authentication works great, both with a username/password and with 3rd party (google) auth. I also have a maui native app ...
2
votes
1
answer
32
views
How to make .NET 8's minimal identity APIs work with a global Authorization FallbackPolicy?
My API is enforcing a global authorization policy to require authenticated users on all endpoints, unless they explicitly specify another policy or opt out via [AllowAnonymous].
This works fine with ...
0
votes
0
answers
18
views
ASP.NET MVC 5 : Request.isAuthenticated always returns true after host app on web server
I am using Identity authentication, the app and the code in razor view works correctly when executed in Visual Studio 2015, but after publishing and hosting the application on Smarterasp host, the ...
0
votes
0
answers
12
views
Adding multiple cookies for the ASP.NET Identity
I have a use case in which I need to use two /login and /logout endpoints depending on the authorization request, each will perform specific tasks.
I'm using ASP.NET Identity:
builder.Services....
1
vote
1
answer
47
views
What value to set ConcurrencyStamp in AspNetRoles table
I need to add some user roles as part of a data migration script.
The ConcurrencyStamp appears to be a GUID. Does anyone know if something special is needed here? Or can I just add any GUID value?
1
vote
1
answer
36
views
How to implement AD B2C authentication on an ASP Net Core application that has Razor pages and web API in a single application
I am trying to secure the application using AD B2C, The application has Razor Pages and WebAPI. The razor pages .cs file has requests to the webapi using httpClient. I have gone through the sample B2C ...
1
vote
0
answers
40
views
Keycloak with ASP.NET Core MVC app, claims never contain roles
I have a keycloak server deployed to production and I am trying to get roles to work properly within my ASP.NET Core MVC app. The token from keycloak is returning the roles. I am able to be redirected ...
-1
votes
1
answer
25
views
JWT with Identity .NET 8
I have a project in asp.net core with identity from .NET 8. Everything is going well, I added roles for the user (eg Admin, User) only that when I authenticate through the exitpoint at the '/login' ...
0
votes
0
answers
33
views
Is there a way to log activity in the ASP.NET Identity Library? [closed]
I am using the ASP.NET Identity Library in my Blazor Server app. Is there a way to have that library log activity?
I have a user that is asking it for the forgot password email. Her email is in the ...
0
votes
0
answers
9
views
IdentityServer4 Cert AddSigning Credentials
I need some clarification, on the AddSigningCredentials(cert). I know it's recommended for Prod to have use that extension method. The certificate that can be used there, can it be self-generated or ...
0
votes
0
answers
34
views
Two Factor Authenticator SignIn with API in C#
I have 2 projects: Client and API and use IdentityDbContext
When I login and enable 2FA, it returns true for the Client to navigate through Page LoginWith2fa
var result = await _signInManager....
0
votes
0
answers
27
views
How to implement a conditional one-to-one relationship with Identity/Entity Framework/ASP.NET Core
I am having trouble determining how to implement the following scenario in an ASP.NET Core Web API using Identity and Entity Framework:
If an AppUser is given the Performer role when it is created, ...
0
votes
0
answers
54
views
Use Cookie Authentication for Microsoft Authentication in ASP.NET CORE Identity
I want to use Individual Logins and Microsoft Auth on my Blazor WebApp. Now, for debugging purposes, I don't want to sign in every time to the app. So I thought I can solve it with cookies. The cookie ...
0
votes
0
answers
24
views
.NET 7 - Identity - The user can have just one role at time
.NET 7 - Identity
The user can have just one role at time.
After login, the user must select one roles from list to system navigation according with role selected
He can change his current role inside ...