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
0 votes
0 answers
104 views

We have front end web pages and a back-end API. We want to add MS's Identity solution. We added the UI using the scaffolding. The pages come up nicely. But to work, they need a connection to the ...
BWhite's user avatar
  • 883
0 votes
1 answer
560 views

I'm currently developing a Web API that will be used as the backend for a .NET MAUI Blazor Hybrid application. I'm currently doing research into different authentication methods to secure the API and ...
Sam's user avatar
  • 35
-1 votes
1 answer
457 views

I'm in the process of trying to learn both ASP.NET Core Web API and also ASP.NET Core Identity. I've seen that ASP.NET Core Identity has now been integrated into web APIs as part of .NET 8 through ...
Sam's user avatar
  • 35
0 votes
0 answers
107 views

I'm a little confused around the purpose of Identity in .NET and what purpose it serves. Currently to date I have only developed some small internal applications where security isn't much of a concern ...
Sam's user avatar
  • 35
1 vote
0 answers
68 views

I have an ASP.NET MVC app with identity and I have Google and Facebook external logins which work as intended with email confirmation. But if I have it set to no email confirmation, then it just doesn'...
Stoyan Dimitrov's user avatar
1 vote
0 answers
418 views

I am new to ASP.NET Core and I don't understand how to combine OAuth2 and Identity in a way that users can login only with OAuth2 removing Identity's /Account/Login ...
user avatar
1 vote
1 answer
132 views

I am using .Net Core 8 and I have the following class: ...
khteh's user avatar
  • 4,300
0 votes
1 answer
242 views

I have a .NET Framework web application that authenticates users and authorizes user roles based on tables that exist in a sql server database instance. i am working on creating a microservices ...
Jon Sowers's user avatar
0 votes
0 answers
131 views

I have a web app built on .NET Framework 4.8 that has integrated login with Azure AD. When I log out and try to log in again, it enters an infinite loop of calls to Microsoft until the access failed ...
alessandro vernile's user avatar
0 votes
1 answer
133 views

I'm working on ASP.NET core web API. I have implemented the register method and generated the JWT. In JWT I have only the name that has userId. ...
Dilakshan AT's user avatar
0 votes
1 answer
114 views

In my EF Core 8 web app with Identity, my login partial is not working (anymore). The Identity pages are not loading, nor seem even the corresponding controller actions to be triggered. I can ...
random's user avatar
  • 21
1 vote
0 answers
992 views

I've created a new Blazor 'Web App' project in .net 8. I include 'Individual Accounts' when setting up the project. I've setup email delivery and try a password reset. It sends the reset email first, ...
niico's user avatar
  • 13.1k
0 votes
0 answers
100 views

I am working on an ASP.NET Core 6.0 Identity project. I want to pass an ApplicationUser object to the LoginWith2fs.cshtml page ...
Massey's user avatar
  • 1,131
-1 votes
1 answer
199 views

I would like to track the last time a user was active on our website. One approach would be to write middleware that updates the database with every authenticated page request. However, I'm a little ...
Jonathan Wood's user avatar
0 votes
1 answer
772 views

I have spent the last week implementing the Duende Software IdentityServer 7 BFF framework integrated with the ASP.NET Core Identity v8 for user persistence and management. Now this is all up and ...
Andrew HB's user avatar
  • 412
-1 votes
1 answer
303 views

This question is about what Blazor (IdentityServer) and the ASP.NET Core Identity Library does under the covers with respect to GDPR, CCPA, etc. First off, if a user is not authenticated by the ...
David Thielen's user avatar
0 votes
1 answer
152 views

I am creating a new IdentityDbContext based on an existing customized database. Instead of adding custom properties to AspNetUsers, it was decided years ago to add them to another table, CustomUser, ...
Rich Bennema's user avatar
  • 10.3k
0 votes
1 answer
1k views

I am plugging in OpenID authentication to an old .NET Framework 4.8 web app. This is mostly working. As a test I have created a claims.aspx cloned from one of my existing pages, but almost all the ...
Sputnikk23's user avatar
0 votes
1 answer
253 views

Imagine an app where a user can manage some kind of items (his tasks, his book collection or whatever). The user shall only have access to his own items, not those of other users. How would I ensure ...
me.at.coding's user avatar
  • 18.5k
0 votes
1 answer
51 views

I am new to Asp.Net Core Identity and EF migration.I have created the Identity related tables in my database using code first approach. The AspNetUsers table has a field named Email. I want to rename ...
Massey's user avatar
  • 1,131
0 votes
2 answers
2k views

Starting with NET 7, one can configure JWT validation values in appsettings.json, e.g. as mentioned in this blog post (section Simplified configuration for the ...
me.at.coding's user avatar
  • 18.5k
0 votes
0 answers
196 views

There was an error running the selected code generator: 'Package restore failed. Rolling back package change for Swarojgaar' This error occurred while trying to scaffold identity in my asp.net mvc ...
sahilistic's user avatar
0 votes
1 answer
146 views

I am migrating a legacy .NET application to .NET 8, where authentication is being moved from a local identity database to Azure AD B2C. Here, I first check on Azure AD B2C. If the user isn't available,...
Shehan V's user avatar
  • 164
0 votes
2 answers
773 views

I'm facing an authentication issue in my ASP.NET Core MVC application using Identity and cookies. Despite a successful login using _signInManager.PasswordSignInAsync, User.Identity.IsAuthenticated is ...
Othmane Hatiji's user avatar
1 vote
0 answers
29 views

I am writing an ASP.NET 8.0 Blazor Server App. I am using Microsoft Identity Framework Core for authorization. It loads menu items after successful user login only. I have used the following ...
Fayyaz Ahmed's user avatar
0 votes
0 answers
2k views

I'm working on an ASP.NET Core 6 Web API project which creates several HttpClients to access several external resources using the approach illustrated here. I'm ...
erionpc's user avatar
  • 418
0 votes
1 answer
147 views

All I wanted was to move the logic from the razor pages / model into a Controller because it ruins the organization of my project. I have a class that derives from IdentityUser. This means that I ...
maria8829's user avatar
0 votes
0 answers
225 views

I have implemented razor view based identity in asp.net core 6. The logging works fine. However, whenever someone logs in, I want the LastLogin field in the AspNetUsers table to be updated with the ...
Massey's user avatar
  • 1,131
3 votes
0 answers
294 views

So, I already have a table of users with hashed passwords using ASP.NET Core Identity and want to migrate them to my Keycloak database. Is there any way of doing this?
ELOL's user avatar
  • 33
1 vote
1 answer
686 views

I'm trying to learn .NET Identity Framework. As you know Identity Framework's default pages doesn't need controller actions to work. So I can't view this pages like I did with my custom pages that has ...
sedat's user avatar
  • 29
2 votes
1 answer
807 views

I'm working on an ASP.NET Core 8 application using Identity for authentication, including Google sign-in. After successfully signing in with Google, the application redirects to /signin-google, but ...
Jack Leprado's user avatar
0 votes
2 answers
63 views

When working with .NET identity in web APIs, you don't find AddDefaultIdentity method to add identity to DI service.AddDefaultIdentity is a method found in Web UIs and not in APIs. What is the ...
Savindya A's user avatar
1 vote
1 answer
675 views

ASP.NET Core's anti-forgery cookie name is .AspNetCore.Antiforgery.XXX where the last bit is random. The cookie can be renamed like so: ...
lonix's user avatar
  • 22.6k
2 votes
1 answer
832 views

I've just started working on a new ASP.NET Core 8 Minimal API. I'm trying to play with some new features regarding identity. I'm using the class below to register auth services. ...
bartusko_'s user avatar
0 votes
1 answer
122 views

I want to extend the Identity User with custom properties, and use the Identity UI to update them. But I can't get data to be saved. Steps to reproduce the issue, using Visual Studio 17.9.0 Community ...
Stian's user avatar
  • 1,632
2 votes
3 answers
7k views

I have been using Identity Framework packages in my ASP.Net Core Web API Project(.Net8). I have the following setup: On the Program.cs: ...
Gesuele Russello's user avatar
0 votes
1 answer
110 views

I am trying to use Auth0 for the first time and referred sample code from here to create a Asp.net MVC sample application. https://github.com/auth0-samples/auth0-aspnetcore-mvc-samples/tree/master/...
Sachin's user avatar
  • 591
0 votes
1 answer
95 views

When using Duende Identityserver with ASP.NET Identity there are 2 possibilities to add external logins : via ASP .NET Identity via Identityserver (AddOpenIdConnect) What is the difference, what is ...
Christian Riedl's user avatar
0 votes
1 answer
1k views

We already have a running Blazor WebAssembly App (ASP.NET Core hosted) and implemented Authentication/Authorization according to this tutorial. We added Roles to the project in order to restrict users ...
philipp8230's user avatar
0 votes
1 answer
249 views

I have a problem with logging in. Before that, I created a Register page, and it works fine, it inserts the user into the database. I have been using Identity for logging in. When I try to log in, I ...
Ilija Pavlović's user avatar
3 votes
1 answer
729 views

This is how I created the project So far I have: Added Roles to the project, and they are working on FE and BE, e.g. I have added a specific user to a role, and content is rendered on the FE if the ...
J S's user avatar
  • 889
1 vote
1 answer
334 views

I am trying to find a way to imperatively authorize resources in an asp.net razor pages application. So far, I have followed the guide found in this link: https://learn.microsoft.com/en-us/aspnet/core/...
kj49's user avatar
  • 75
1 vote
0 answers
753 views

I have a Asp.net core mvc project that uses the OpenIdConnect authentication scheme with the Microsoft Identity platform. The way I add it is in my Startup class in ConfigureServices method like so: <...
Sigmundur's user avatar
  • 949
-3 votes
1 answer
385 views

I am working on an ASP.NET Core project with identity. In the default Register.cshtml page, there is a textbox to enter the email and confirm email. Similarly in ...
Massey's user avatar
  • 1,131
0 votes
1 answer
171 views

I am created a new .Net core web application using vs 2022 and .NET 8.0 Framework. Project created successfully but when i try to add Asp.net core identity using scaffolding identity. I add dbcontext ...
Manish Kumar's user avatar
0 votes
1 answer
171 views

How can I have both identity endpoints and Razor pages identity UI in the same project? I tried this code in Program.cs but app crash with an error. ...
Hamid Z's user avatar
  • 328
0 votes
0 answers
36 views

Using package Microsoft.AspNet.Identity.Core.2.2.2\lib\net45\Microsoft.AspNet.Identity.Core.dll The following IntranetSecurity.vb code works when called within the website code base. ...
DPetrillo's user avatar
0 votes
2 answers
129 views

I am getting the following error when I am trying to load my Identity login page - InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.SignInManager`1[FNSD....
KevBarri's user avatar
  • 125
0 votes
1 answer
130 views

EF Core 8.0.1 generate b-tree SQL code for Postgres. When I'm trying to apply migration on a server, it produces a Postgres error ...
Alex's user avatar
  • 29