Skip to main content

Questions tagged [asp.net-identity]

The ASP.NET Identity system is designed to replace the previous ASP.NET Membership and Simple Membership systems. Use the ASP.NET Core Identity tag for questions about Identity in ASP.NET Core.

Filter by
Sorted by
Tagged with
1 vote
1 answer
563 views

I have logout endpoint that invalidates user token and should perform redirect to login page after logging user out ...
Oleksiy's user avatar
  • 71
0 votes
1 answer
474 views

I am working on creating an identity microservice using the .NET Identity platform and the new Identity API endpoints. I have 3 separate applications that I am using for testing of the service: An ...
Jon Sowers's user avatar
0 votes
1 answer
46 views

I have chosen to define ApplicationUser class like this in the infrastructure-layer: ...
Nicolai Nygaard's user avatar
1 vote
0 answers
224 views

Is it possible to have only jwt authentication instead of cookie auth and how in dot-net-core 8 ?
Jelena Nikolic's user avatar
0 votes
1 answer
166 views

I am trying to implement an SSO server so that my ASP.NET Core MVC applications can: Authenticate users with the SSO server Get the user's roles and claims from the SSO server Every T minutes I want ...
PedroAsking's user avatar
0 votes
1 answer
114 views

How can I control access to a 2nd website from an ASP.net core website, both running on the same IIS 10 server? My team is implementing a "gateway" or "wrapper" ASP.net core C# app ...
Greg L.'s user avatar
  • 105
0 votes
0 answers
34 views

In the past I have sued identity server 4 as the identity provider. Now, i have deleted the identity project from my solution, removed every mention on the identity url from my solution and also ...
CuriousCat11's user avatar
0 votes
1 answer
309 views

The user needs to login in multiple devices. Each login creates a session with its own token and refresh token. The tokens are stored in the database and then each token the api receives is validated ...
Hossein Ebrahimi's user avatar
0 votes
1 answer
81 views

I'm using Cookies Authentication, but after User Validate there is validated true. screenshot. But after Login, there is shown User Identity not Authenticated screenshot. Here I mention Code snippet ...
EDI Department's user avatar
0 votes
1 answer
43 views

I have the following setup: ...
JohnyL's user avatar
  • 7,204
1 vote
1 answer
225 views

I am currently working on a login system where a user has the option to login with either their organization email (AD authentication) or regular email and password as shown below: Before adding ...
Diego Salas's user avatar
0 votes
1 answer
208 views

I have a multi-tenant application which has Tenant users (identified by the roles TenantSupport and TenantTechnical) and Admin ...
Jimbo's user avatar
  • 23.1k
0 votes
0 answers
180 views

I'm receiving this error: "EditForm requires either a Model parameter, or an EditContext parameter, please provide one of these." But I'm providing an (initialized) Model parameter to the ...
Victor's user avatar
  • 1
0 votes
0 answers
271 views

I have created an ASP.NET Core 8 MVC web application and scaffolded Identity on to it, only accepting a few pages (Login, Registration, Forgot Password, etc). What I've discovered with some research ...
Tom Clark's user avatar
0 votes
0 answers
71 views

I used ASP.NET Identity and at this time have a problem. My problem is that ExpireTimeSpan is not working at the server. My Program code is ...
loxeso3659's user avatar
-1 votes
1 answer
174 views

An unhandled exception occurred while processing the request. NullReferenceException: Object reference not set to an instance of an object. AspNetCoreGeneratedDocument....
Dia's user avatar
  • 31
0 votes
1 answer
43 views

I'm using authorization code flow to login UI users and client credentials to login API clients. AccessToken lifetime should be few minutes for UI users but few hours for API clients. I'm using ...
Oleksiy's user avatar
  • 71
1 vote
0 answers
82 views

Notifications to all users work successfully. When I use Clients.All: when i use Clients.All However, when I try to send notifications to specific users, I see a success message, but the notifications ...
Rachad's user avatar
  • 11
0 votes
0 answers
279 views

I’m using ASP.NET Core Identity in a Blazor project. I’d like to encrypt the user’s personal data, however, I don’t want to encrypt the UserName. My plan is to use ...
Rick P.'s user avatar
0 votes
0 answers
155 views

We are migrating an application from Webforms to ASP.Net Core 6 and I'm trying to emulate the bit isLocked in the membership framework by providing a large value for the DefaultLockoutTimeSpan: ...
L. Wallach's user avatar
0 votes
2 answers
1k views

I have a Blazor Server app. It uses the ASP.NET Identity Library which is ASP.NET Core MVC. I am trying to pass a parameter to register so a URL like ...
David Thielen's user avatar
1 vote
0 answers
94 views

I'm encountering an issue with time differences in my SQL Server environment and I'm seeking advice on how to resolve it. Here's a brief overview of the problem: Problem Description: I have a scenario ...
Puchakayala Manoj's user avatar
0 votes
1 answer
76 views

I've got SQL Server tables Users, Roles and SecurityGroups, each containing an integer ID and a NVARCHAR Name. I also have mapping tables User_SecurityGroup and SecurityGroup_Role. A user can be in ...
Legion's user avatar
  • 3,539
0 votes
0 answers
30 views

I have this model: ...
leonard staniloiu's user avatar
1 vote
0 answers
76 views

I have this login process (some parts will be omitted): Index.cshtml.cs (Login): ...
Rodrigo Duarte's user avatar
0 votes
2 answers
96 views

I have tried to implement JWT token authorisation into my system but it's not working. I'm new to ASP.net so please go easy on me. I can login fine and i do get the token as expected. But when I try ...
Ryan's user avatar
  • 1
0 votes
0 answers
78 views

I'm trying to extend ApplicationUser with custom properties on a fresh Blazor server project. Here's what I have: ...
SelfishCrawler's user avatar
0 votes
0 answers
52 views

I am developing a web app that contains a Blazor front end and a .net WebAPI backend. Both are developed using the .NET 8 version. I also have a class library project where I have all the data ...
Babu Mannavalappil's user avatar
0 votes
2 answers
503 views

I have applied Localization in my asp.net core mvc project. It includes blazor pages for Identity. I want to enable to change the culture by changing the site url's culture part. domain/en/Home/Index ...
max ray's user avatar
  • 25
0 votes
1 answer
55 views

I have a project where the web is authenticated with an identity and I want to use JWT for APIs. What changes should I make to use both at the same time? ...
YA3H's user avatar
  • 1
0 votes
1 answer
309 views

I'm trying to access ApplicationUser of current logged-in user in Blazor Server .NET 8 app. I've added a new page in /Account/ISP called Index.razor ...
SelfishCrawler's user avatar
0 votes
1 answer
466 views

I am new to Asp.Net Core MVC. I have created an MVC application in .Net Core 6.0. When I scaffolded the Identity, it created it in Razor pages. Once the user enters the login credentials, the Login ...
Massey's user avatar
  • 1,131
0 votes
0 answers
63 views

I Use Microsoft.AspNetCore.Identity.EntityFrameworkCore in my project When I try to update the user role I get the following error InvalidOperationException: The instance of entity type 'RoleEntity' ...
movahedijam's user avatar
0 votes
0 answers
74 views

I am having an issue when trying to login to our ASP.NET MVC application. It works if I pull up a browser on the server and utilize localhost. When I use the IP Address of that server, it continues to ...
Eric's user avatar
  • 258
0 votes
1 answer
362 views

In a Blazor InteractiveServer application, using the ASP.NET Identity Library, I call: Microsoft.AspNetCore.Identity.UserManager`1.GetClaimsAsync(TUser user) I set it to use my extension class by ...
David Thielen's user avatar
4 votes
0 answers
990 views

ASP.NET Core 8 Identity produces a token that is NOT JWT! The tokens aren't standard JSON Web Tokens (JWTs). The use of custom tokens is intentional, as the built-in Identity API is meant primarily ...
Tohid's user avatar
  • 6,759
1 vote
2 answers
205 views

I'm developing a website with ASP.NET Core 8 Web API, SQL Server, utilizing the identity framework. The database contains various tables such as AspNetUsers, AspNetRoles, AspNetUserRoles, Brands, and ...
Terrance's user avatar
1 vote
1 answer
449 views

I have simple api setup with Asp Identity , the login, create and 2fa routes are working fine, but when i try to call sign out I am getting the following error response System....
karthik suryadevara's user avatar
0 votes
0 answers
59 views

I'm seeding the User identity table using EF core configurations, this is my method. ...
Sgri's user avatar
  • 3
1 vote
0 answers
207 views

I'm trying to seed 2 default users (admin & standard user) using data migrations and I'm getting an error with the Id property of the IdentityUser entity. This is the code I'm using: ...
misuk's user avatar
  • 235
1 vote
1 answer
153 views

I am developing a project, it is requested to use IdentityServer4. I install the project but I can't run it because it doesn't support .net 3.1 on Macos operating system. I did some research, I found ...
levent41's user avatar
0 votes
1 answer
84 views

I've a fully custom _Layout page in location "~/Views/Shared/". ...
Abdullah Al Mahmud Khan's user avatar
0 votes
1 answer
203 views

I have two projects. Project 1 is a VB project, and Project 2 is a .NET Core MVC project. Project 1 sends data to Project 2. Based on the data that it receives, it creates a new identity user in the ...
MarkBerry's user avatar
0 votes
0 answers
229 views

I have recently been spending some time learning the new Identity endpoints that have been added to ASP.NET Core Web APIs as part of .NET 8. I am currently trying to develop a .NET MAUI application ...
Sam's user avatar
  • 35
0 votes
1 answer
35 views

After upgrading packages Microsoft.IdentityModel.JsonWebTokens and System.IdentityModel.Tokens.Jwt the service returns message <...
Viacheslav's user avatar
0 votes
1 answer
77 views

I have a front-end project where I get all the data from an External API. How I can manage users permission to access the app pages? When the user logs in, I get the bearer token and a list of user ...
Ameera Test's user avatar
0 votes
1 answer
127 views

I have a custom application user created which I'm using in my identity stores/user managers/etc. but no matter what I do it continues to try to utilize AspNetUsers ...
Jacob Schroeder's user avatar
0 votes
1 answer
548 views

Is there any way to force the AuthenticationState to re-read the database when claims have changed? I've implemented a ServerAuthenticationStateProvider and it ...
David Thielen's user avatar