Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
92 views

I'm trying to confirm an email with the generated email confirmation token of UserManager, I literally have a working project with this same code, but I don't understand why this is happening now. ...
Pedro Octávio Cruvinel's user avatar
1 vote
0 answers
49 views

I've created a minimal poc for logging in and out using UserManager and SignInManager to create a registration, login, logout, and check if you're logged in: [HttpPost("logout")] [Authorize] ...
GeorgeR's user avatar
  • 211
1 vote
0 answers
112 views

I have an ASP.NET Core Web API. When I set it up, I used the built-in ASP.NET Core identity stuff because that was fast and got me directly into writing the meat of the API functionality. Now I need ...
mrcoulson's user avatar
  • 1,413
2 votes
1 answer
87 views

I am using ASP.NET Core Identity to secure a REST API. I am calling AddIdentityCore, provide my own user with some additional properties and use the default SignInManager.CheckPasswordSignInAsync to ...
Robin's user avatar
  • 21
1 vote
0 answers
69 views

I was trying to figure out why in my application, my IdentityUser lockout does not work. It is a brand new project! builder.Services.Configure<IdentityOptions>(options => { options....
Tank45b's user avatar
1 vote
0 answers
124 views

I am developing a website on .NET 8.0. There is no problem in my Visual Studio IIS (I mean, my local development environment), but when I publish my website (to publish my website, I follow this path :...
mesut yıldırım's user avatar
0 votes
0 answers
34 views

I am using Microsoft Visual Studio Community 2022 (64-bit) v17.14.16. I have followed your code but I am getting error in OnValidSubmitAsync when the function private async Task OnValidSubmitAsync() ...
Aamir Abbas's user avatar
1 vote
1 answer
47 views

I'm trying to have a dynamic OpenId configuration based on the host of the request. More specifically: I have 2 DNS setup for a given website; one starting with "TV" and I'm trying to call ...
Thomas KiTe Trentin's user avatar
0 votes
1 answer
48 views

I have two ASP.NET Core applications: Blazor Server app with Identity authentication (working correctly) Web API that should share authentication cookies with the Blazor app The API is not ...
PeacefulWarrior22's user avatar
0 votes
0 answers
67 views

I have an ASP.NET Core MVC website that uses individual accounts with the Microsoft Identity provider. I used the Visual Studio scaffold option to add the Identity user accounts to my project, but I ...
Himilou's user avatar
  • 177
0 votes
0 answers
20 views

I have started a new Blazor server app via this call dotnet new blazor --name RateWeb -au Individual --force I can login and out and the auth mechanism works as long as I do not use @attribute [...
Jan Gravgaard's user avatar
1 vote
1 answer
117 views

I'm building a Blazor Server app (.NET 9, Identity + Entity Framework Core + MudBlazor). I have a custom login form and I want to authenticate the user manually using SignInManager. I'm using this ...
Tomasz Okraszewski's user avatar
0 votes
1 answer
85 views

I'm building an ASP.NET Core 9 Web API with Identity and EF Core. One of the POST endpoints adds a row to a database table, which also contains user. In theory, I could extract the user using ...
Patryk's user avatar
  • 33
2 votes
1 answer
399 views

I'm just getting started with Blazor, and while going through the scaffolded project that uses Identity with both SSR and WASM, I noticed that the Auth.razor page in the client project includes both ...
victor's user avatar
  • 1,582
0 votes
1 answer
73 views

Based on Microsoft learn, I try to add custom user data to an identity user, but where ever I try to use WebApp1User I get this error: InvalidOperationException: No service for type 'Microsoft....
Ehsan Khodabakhsh's user avatar
0 votes
0 answers
182 views

My setup: ASP.NET Core 8 MVC application, configured to act purely as an API (returns JSON, no traditional views) Frontend: React application running on http://localhost:3000 Backend API: running on ...
C0MPL3X's user avatar
  • 16
2 votes
0 answers
96 views

I am using Identity in my ASP.NET Core Web API. Here is the code for authentication and authorization: public static void AddAuthorizationWithIdentity(this WebApplicationBuilder builder) { builder....
Dilshod K's user avatar
  • 3,160
1 vote
1 answer
51 views

My goal is to configure integration tests for external login providers in my app. I want to mock an external login provider and simulate its behavior. So for example in my test I want to call /api/...
Piotrek's user avatar
  • 11.3k
0 votes
0 answers
57 views

I'm developing a .NET Core Identity API using the following setup: builder.Services.AddIdentityApiEndpoints<AppUser>() .AddRoles<AppRole>() ....
enes durmuş's user avatar
1 vote
0 answers
99 views

I have an ASP.NET Core web project. If I open a "CMD" console, change to the directory where my project and run dotnet build, it successfully builds the first time I run it. If I run dotnet ...
Tom Rutchik's user avatar
  • 1,812
0 votes
1 answer
122 views

My issue is pretty weird. Normally, I encounter this problem in my main application, but to simulate it, I created a smaller app — and I'll be sharing all examples from there because I'm facing the ...
mesut yıldırım's user avatar
0 votes
0 answers
25 views

I'm using ASP.NET Core Identity with AddIdentityApiEndpoints<User>() and bearer token authentication configured via BearerTokenOptions. In my login use case, I use the following: await ...
Victor's user avatar
  • 1
1 vote
0 answers
124 views

I am building an ASP.NET Core 8 web application with Blazor pages. The URI I have been assigned for my web application on the production server is not hosted at the root / of the server but at the ...
Tyson Gibby's user avatar
  • 4,969
0 votes
1 answer
90 views

I have a Blazor .NET 8 server application, with render mode per component. For authentication I use ASP.NET Core Identity. When starting the application, I create an admin, if it does not already ...
alessoi1's user avatar
0 votes
0 answers
30 views

In my controller, I have both protected and unprotected routes. For the unprotected routes, I want the JWT pipeline to skip validation on those endpoints. This is how I handled it. However I'm not 100%...
MiguelG's user avatar
  • 481
0 votes
0 answers
54 views

Let me give you some context: I know it's a fairly specific question which probably can be answered by googling. Which I've done and followed some guide but I feel like there is something I am doing ...
yzkael's user avatar
  • 363
1 vote
2 answers
156 views

I am trying to use .NET's Core Identity, but via MongoDB instead SQL Server. I found a NuGet package that seems to fit the bill, but when I attempt to use it I get the following error: System....
Age of Empires's user avatar
0 votes
0 answers
57 views

I'm using ASP.NET Core Identity to secure a Web API per this documentation. I'm setting RequireConfirmEmail to true, meaning that when the user registers, he will get an email for confirmation ...
user11081980's user avatar
  • 3,319
1 vote
1 answer
100 views

I am working on an API with ASP.NET Core 3.1 and I have created multiple controllers. This API uses a JWT bearer token to authenticate the caller where LoginController has three endpoints Login, Error ...
Aliyan Ahmed's user avatar
0 votes
1 answer
37 views

I am working through a book on ASP.NET Core Web API and I am trying to implement authorization. Here is my Program.cs: var builder = WebApplication.CreateBuilder(args); var connString = builder....
CoderForHire's user avatar
0 votes
1 answer
89 views

I am trying to Scaffold Identity UI containing Login.cshtml and Register.cshtml for my ASP.NET Core application. The code in my Program.cs file is: using ObjectCrudApp.Data; using Microsoft....
bibashmanjusubedi's user avatar
0 votes
1 answer
57 views

Building an intranet system in ASP.NET Core and all was working fine but now I have added identity to it so that a login system can be integrated I have hit a complete roadblock. Added an identity ...
CFA Digital's user avatar
0 votes
1 answer
71 views

I scaffolded all of the identity views, but they all go to the Areas folder - I would prefer if they went in my Views folder. I moved the generated identity code to the desired Views folder, and ...
user1675016's user avatar
0 votes
1 answer
179 views

I have an ASP.NET Core web application that is using Identity for authentication and authorization. This allows me to register users easily in the website and it all works as expected. However, the ...
mxcolin's user avatar
  • 115
1 vote
1 answer
191 views

Let me give you some context. I am currently trying to implement a Refresh/Access token setup for my authentication and authorization. I think I understand the idea and the purpose of each token. But ...
yzkael's user avatar
  • 363
-1 votes
1 answer
58 views

I'm reading through this book. It's using ASP.NET Core 6. So far it's been very good, but now I've reached the chapter on authentication and authorization, and I'm getting an exception. In the ...
CoderForHire's user avatar
1 vote
1 answer
55 views

I have an ASP.NET Core application using Identity for authentication/authorization that I'm trying to configure as a NuGet server. The NuGet server piece works great if I remove any Authorize ...
mxcolin's user avatar
  • 115
0 votes
1 answer
67 views

I set an Identity Server for Auth for my Microservices app. program.cs using System.Security.Claims; using AuthMicroservice; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; ...
user29547398's user avatar
0 votes
1 answer
263 views

I am trying to login via an external provider on my Duende Asp.Net Identity Project. The project is hosted on Azure App Services. However when doing so, I get this error. The resource you are looking ...
Richard Vo's user avatar
0 votes
1 answer
2k views

I registered an app: test.com Added App Roles: Added User with Roles Added API Permissions But I don't see any roles-related claim in this list: This is my backend code: builder.Services.Configure&...
Sergey Nikolaevich Guk's user avatar
0 votes
1 answer
68 views

I'm working on JWT authentication/authorization project, following this guide. I have successfully wired up the JWT infrastructure and I'm able to login successfully and generate the required tokens. ...
Nasser X's user avatar
  • 305
1 vote
0 answers
70 views

I'm integrating Microsoft Entra ID (Azure AD) into my ASP.NET Core application for authentication. Since Entra ID is an external identity provider (SSO), I will no longer store users in my database, ...
nop's user avatar
  • 6,617
1 vote
1 answer
61 views

I have been working with .NET projects regularly, and I have always used the Identity package from .NET Core. Recently I had to work on a project where the main identifier is not a username, but the ...
Isaac Morales's user avatar
0 votes
1 answer
67 views

I´m having a problem when trying to create a seed for a user in my c# mvc. this is my seed, I need to create a standard user for my Database: public static class IdentitySeed { public static ...
gustavo deda's user avatar
0 votes
0 answers
100 views

I am trying to authenticate an user from Blazor to access resources on a ASP.NET Core Web API using ASP.NET Core Identity. I have two authentication methods configured: JWT and Cookies. When I login ...
Emanuel Marques's user avatar
0 votes
1 answer
239 views

Let me give you some context: I am trying to implement custom policies in an ASP.NET Core Web API while using JWT bearer tokens. But for some reason when trying to reach the protected routes, this ...
yzkael's user avatar
  • 363
1 vote
1 answer
50 views

I am working on project ,I want the name of user in _layout page through Identity in ( ASP .net core 9 MVC ) So when I signout I should seen the name of user. @User.Identity!.Name I am getting Email ...
INVENTUS T.V's user avatar
1 vote
0 answers
51 views

I am using the ASP.NET Core 6 Identity library. I added in logging in using my Google account and that works fine. I now want to add getting the account's phone number and address. This is failing. In ...
David Thielen's user avatar
0 votes
0 answers
45 views

I want to use AspNetCore.Identity for my backend. I am using MongoDb, so I am creating a custom UserStore implementation. It is my first time setting this up and I am a little uncertain about the ...
miesepeter's user avatar
0 votes
0 answers
21 views

I am using .NET Core identity in my web application. This is how I am configuring the authentication: var ab = services.AddAuthentication(IdentityConstants.ApplicationScheme) .AddJwtBearer(x => ...
jstuardo's user avatar
  • 4,497

1
2 3 4 5
27