# \#aspnet-core

**URL:** https://community.auth0.com/tag/aspnet-core/269.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [Secure a C# MCP Server with Auth0](https://community.auth0.com/t/secure-a-c-mcp-server-with-auth0/198026)

<div class="topic-metadata">

**Author:** [@andrea.chiarelli](https://community.auth0.com/u/andrea.chiarelli)\
**Replies:** 1\
**Last updated:** [March 12, 2026, 5:06pm UTC](https://community.auth0.com/t/secure-a-c-mcp-server-with-auth0/198026 "2026-03-12T17:06:16Z")

</div>

Learn how to build and secure an MCP server in .NET using Auth0. Read the full post here.

---

## [When ASP.NET Core Identity Is No Longer Enough](https://community.auth0.com/t/when-asp-net-core-identity-is-no-longer-enough/185311)

<div class="topic-metadata">

**Author:** [@robertino.calcaterra](https://community.auth0.com/u/robertino.calcaterra)\
**Replies:** 1\
**Last updated:** [April 10, 2025, 4:08pm UTC](https://community.auth0.com/t/when-asp-net-core-identity-is-no-longer-enough/185311 "2025-04-10T16:08:11Z")

</div>

Let’s explore the scenarios where ASP.NET Core Identity shows its limitations and what the alternatives are. Read more… :writing\_hand:t2: Brought to you by @andrea.chiarelli

---

## [Differentiate Access Token between a User and Application (Client)](https://community.auth0.com/t/differentiate-access-token-between-a-user-and-application-client/35514)

<div class="topic-metadata">

**Author:** [@supercell](https://community.auth0.com/u/supercell)\
**Replies:** 3\
**Last updated:** [July 18, 2024, 7:00pm UTC](https://community.auth0.com/t/differentiate-access-token-between-a-user-and-application-client/35514 "2024-07-18T19:00:47Z")

</div>

Hi there, Which properties (claims) should one use to differentiate between an access token issued for a User and one for an Application (Client, Machine-to-Machine)? I’ve been inspecting the access tokens issued for a…

---

## [What is Blazor? A Tutorial on Building Web Apps with Authentication](https://community.auth0.com/t/what-is-blazor-a-tutorial-on-building-web-apps-with-authentication/33611)

<div class="topic-metadata">

**Author:** [@ramiro](https://community.auth0.com/u/ramiro)\
**Replies:** 173\
**Last updated:** [May 30, 2024, 3:51pm UTC](https://community.auth0.com/t/what-is-blazor-a-tutorial-on-building-web-apps-with-authentication/33611 "2024-05-30T15:51:14Z")

</div>

Learn how to build client-side Web apps using Blazor and how to secure them with Auth0 authentication and authorization features. Read on :fire: Brought to you by @andrea.chiarelli :man\_technologist:t2:

---

## [Leverage RBAC permissions in a regular Web Asp.Net Core Application](https://community.auth0.com/t/leverage-rbac-permissions-in-a-regular-web-asp-net-core-application/46727)

<div class="topic-metadata">

**Author:** [@samuel.pecoul](https://community.auth0.com/u/samuel.pecoul)\
**Replies:** 2\
**Last updated:** [October 6, 2023, 12:23am UTC](https://community.auth0.com/t/leverage-rbac-permissions-in-a-regular-web-asp-net-core-application/46727 "2023-10-06T00:23:40Z")

</div>

Hello ! My company want to switch from an old “home made” authentication/authorization system to Auth0 for all of their applications (mainly regular AspNet Core App). This ‘legacy’ authorization system is based on ‘per…

---

## [No 'Access-Control-Allow-Origin' header is present on the requested resource (ASP.NET Core Web API 3.1 + Angular)](https://community.auth0.com/t/no-access-control-allow-origin-header-is-present-on-the-requested-resource-asp-net-core-web-api-3-1-angular/85129)

<div class="topic-metadata">

**Author:** [@tararia](https://community.auth0.com/u/tararia)\
**Replies:** 1\
**Last updated:** [September 19, 2023, 1:33pm UTC](https://community.auth0.com/t/no-access-control-allow-origin-header-is-present-on-the-requested-resource-asp-net-core-web-api-3-1-angular/85129 "2023-09-19T13:33:36Z")

</div>

The frontend is angular SPA and the backend is ASP.NET Core Web API 3.1. The backend API contains only two endpoint: one public, one secured with \[Authorize\] attribute. I am able to login to the sample angular applicatio…

---

## [ASP.NET Core MVC user management](https://community.auth0.com/t/asp-net-core-mvc-user-management/95853)

<div class="topic-metadata">

**Author:** [@HighSpeed](https://community.auth0.com/u/HighSpeed)\
**Replies:** 1\
**Last updated:** [December 9, 2022, 9:50pm UTC](https://community.auth0.com/t/asp-net-core-mvc-user-management/95853 "2022-12-09T21:50:04Z")

</div>

Hello, I’m looking to implement a registration/signin flow as well as some basic user profile management. I’ve done this before using ASPNET Identity (with both local username/passwords and external accounts). But I’…

---

## [JWT audience invalid when posting to controller with \[Authorize\]](https://community.auth0.com/t/jwt-audience-invalid-when-posting-to-controller-with-authorize/12766)

<div class="topic-metadata">

**Author:** [@airmaster](https://community.auth0.com/u/airmaster)\
**Replies:** 5\
**Last updated:** [September 15, 2022, 11:41pm UTC](https://community.auth0.com/t/jwt-audience-invalid-when-posting-to-controller-with-authorize/12766 "2022-09-15T23:41:49Z")

</div>

Platform: C#, Visual Studio ASP.NET 2.1 Core I am trying to POST a form to a controller, and am using the AuthHttp service to make the post inside of a service: create(volunteer) { return this.authHttp.post(this.v…

---

## [Using C# Extension Methods for Auth0 Authentication](https://community.auth0.com/t/using-c-extension-methods-for-auth0-authentication/55417)

<div class="topic-metadata">

**Author:** [@robertino.calcaterra](https://community.auth0.com/u/robertino.calcaterra)\
**Replies:** 6\
**Last updated:** [August 16, 2022, 8:54am UTC](https://community.auth0.com/t/using-c-extension-methods-for-auth0-authentication/55417 "2022-08-16T08:54:56Z")

</div>

How to use C# extension methods to simplify Auth0 configuration for ASP.NET web applications. Read more Brought for you by @andrea.chiarelli

---

## [Signature Algorithm of "RS256" is Not Supported Err Msg .NET Auth0 NuGet Package](https://community.auth0.com/t/signature-algorithm-of-rs256-is-not-supported-err-msg-net-auth0-nuget-package/82990)

<div class="topic-metadata">

**Author:** [@v\_auth](https://community.auth0.com/u/v_auth)\
**Replies:** 5\
**Last updated:** [May 13, 2022, 12:39am UTC](https://community.auth0.com/t/signature-algorithm-of-rs256-is-not-supported-err-msg-net-auth0-nuget-package/82990 "2022-05-13T00:39:18Z")

</div>

Auth0.AuthenticationApi v7.15.0 NuGet package used in .NET Core 3.1. Using Resource Owner Grant Flow. I get the following error: Signature algorithm of “RS256” is not supported. Expected the ID token to be signed with…

---

## [Migrating users from ASP.NET Identity Core (2.0) to](https://community.auth0.com/t/migrating-users-from-asp-net-identity-core-2-0-to/80990)

<div class="topic-metadata">

**Author:** [@mt-tom](https://community.auth0.com/u/mt-tom)\
**Replies:** 5\
**Last updated:** [April 4, 2022, 9:44pm UTC](https://community.auth0.com/t/migrating-users-from-asp-net-identity-core-2-0-to/80990 "2022-04-04T21:44:33Z")

</div>

I’m having trouble migrating a user, without losing the original password, from an existing database that was created using ASP.NET Identity Core (version 2.0). My goal is to migrate a user over and be able to use the e…

---

## [Authorization Code Flow with PKCE utilizing package Auth0.AspNetCore.Authentication](https://community.auth0.com/t/authorization-code-flow-with-pkce-utilizing-package-auth0-aspnetcore-authentication/78314)

<div class="topic-metadata">

**Author:** [@arshad.sarfarz.1979](https://community.auth0.com/u/arshad.sarfarz.1979)\
**Replies:** 5\
**Last updated:** [March 24, 2022, 1:39am UTC](https://community.auth0.com/t/authorization-code-flow-with-pkce-utilizing-package-auth0-aspnetcore-authentication/78314 "2022-03-24T01:39:56Z")

</div>

Our team would like to use Authorization Code Flow with PKCE for server side applications. Can we use the package Auth0.AspNetCore.Authentication for implementing Authorization Code Flow with PKCE in ASP.NET Core MVC? I …

---

## [RequireHttpsMetadata](https://community.auth0.com/t/requirehttpsmetadata/80172)

<div class="topic-metadata">

**Author:** [@sean.feldman](https://community.auth0.com/u/sean.feldman)\
**Replies:** 2\
**Last updated:** [March 21, 2022, 5:41pm UTC](https://community.auth0.com/t/requirehttpsmetadata/80172 "2022-03-21T17:41:00Z")

</div>

I’m building a Blazor WebAssembly (WASM) application hosted with ASP.NET Core on .NET 6. In my attempt to deploy to Azure App Service (Windows), I’ve run into an issue with the Auth0 configuration working locally but fa…

---

## [ASP Core MVC SDK](https://community.auth0.com/t/asp-core-mvc-sdk/72781)

<div class="topic-metadata">

**Author:** [@svenmarien](https://community.auth0.com/u/svenmarien)\
**Replies:** 3\
**Last updated:** [November 10, 2021, 11:47am UTC](https://community.auth0.com/t/asp-core-mvc-sdk/72781 "2021-11-10T11:47:27Z")

</div>

I have used the Auth0 SDK for ASP NET Core to add Auth0 authentication to my MVC application. (I’ve followed the quickstart here: Auth0 ASP.NET Core MVC SDK Quickstarts: Login) This works fine on my development machine…

---

## [.NET Core Angular 401 when calling API](https://community.auth0.com/t/net-core-angular-401-when-calling-api/71413)

<div class="topic-metadata">

**Author:** [@richardrflores](https://community.auth0.com/u/richardrflores)\
**Replies:** 2\
**Last updated:** [October 28, 2021, 12:13pm UTC](https://community.auth0.com/t/net-core-angular-401-when-calling-api/71413 "2021-10-28T12:13:30Z")

</div>

Hi, I have a .NET Core Angular app that has been setup to make secure calls to an API using but I’m getting a 401error when the client application makes the call to the API. This issue has been reported several times, …

---

## [Issue requesting Access Token with .NET SDK](https://community.auth0.com/t/issue-requesting-access-token-with-net-sdk/71450)

<div class="topic-metadata">

**Author:** [@adavisson](https://community.auth0.com/u/adavisson)\
**Replies:** 1\
**Last updated:** [October 18, 2021, 1:24am UTC](https://community.auth0.com/t/issue-requesting-access-token-with-net-sdk/71450 "2021-10-18T01:24:18Z")

</div>

Hi all, Some info about my setup first. Working with a Blazor server-side application, running asp.net core 5.0, with latest version of the Auth0 SDK installed. What I am running into and having problems with is request…

---

## [Trying out asp.net core in .net 6 and having a redirect issue I cannot explain](https://community.auth0.com/t/trying-out-asp-net-core-in-net-6-and-having-a-redirect-issue-i-cannot-explain/71221)

<div class="topic-metadata">

**Author:** [@jeff9](https://community.auth0.com/u/jeff9)\
**Replies:** 3\
**Last updated:** [October 13, 2021, 11:20am UTC](https://community.auth0.com/t/trying-out-asp-net-core-in-net-6-and-having-a-redirect-issue-i-cannot-explain/71221 "2021-10-13T11:20:29Z")

</div>

I am following the ASP.NET Core: Login quickstart article, link is account specific so I cannot provide it here. I am also adapting it to C# 10/.net 6. It is using razor pages and a two MapGets to setup logging in and o…

---

## [Can't make post request from angular to C# net core api](https://community.auth0.com/t/cant-make-post-request-from-angular-to-c-net-core-api/68337)

<div class="topic-metadata">

**Author:** [@sjpereyra\_dev](https://community.auth0.com/u/sjpereyra_dev)\
**Replies:** 3\
**Last updated:** [August 26, 2021, 9:14am UTC](https://community.auth0.com/t/cant-make-post-request-from-angular-to-c-net-core-api/68337 "2021-08-26T09:14:48Z")

</div>

i’m trying to post information to my backend, wich is .Net 5 from my angular12 SPA with something like this return this.http.post(‘https://localhost:44307/something/postRequest’, data); always returns error 401 unautho…

---

## [Latest Angular with a .net 5 back end api](https://community.auth0.com/t/latest-angular-with-a-net-5-back-end-api/65218)

<div class="topic-metadata">

**Author:** [@bradsharp54](https://community.auth0.com/u/bradsharp54)\
**Replies:** 3\
**Last updated:** [June 29, 2021, 7:41pm UTC](https://community.auth0.com/t/latest-angular-with-a-net-5-back-end-api/65218 "2021-06-29T19:41:25Z")

</div>

I’ve been searching form posts and reading guides but nothing seems to work and there maybe 100’s of ways to do it, but… non of them seem right. I have a simple setup. I have a single page app running in the latest ang…

---

## [ASP.NET Core incorrect redirect url](https://community.auth0.com/t/asp-net-core-incorrect-redirect-url/63678)

<div class="topic-metadata">

**Author:** [@simonids](https://community.auth0.com/u/simonids)\
**Replies:** 10\
**Last updated:** [June 10, 2021, 5:36pm UTC](https://community.auth0.com/t/asp-net-core-incorrect-redirect-url/63678 "2021-06-10T17:36:28Z")

</div>

Hello. I uses auth0 to connect to my application. It works well localy but when i try to use it from the web I have a problem. I uses the ASP.Net Core sample provided in the documentation (Auth0 ASP.NET Core MVC SDK Q…

---

## [Handling separated databases](https://community.auth0.com/t/handling-separated-databases/59024)

<div class="topic-metadata">

**Author:** [@jamal.ali.habashi](https://community.auth0.com/u/jamal.ali.habashi)\
**Replies:** 3\
**Last updated:** [March 9, 2021, 1:42am UTC](https://community.auth0.com/t/handling-separated-databases/59024 "2021-03-09T01:42:10Z")

</div>

Hello, It’s my first time using Auth0 and I have some troubles understanding some concepts, but my biggest concern is how should I handle separated Databases. If I have a customer, which is stored in Auth0 database, ho…

---

## [Getting access to decoded JWT in ASP.NET Core 3.1](https://community.auth0.com/t/getting-access-to-decoded-jwt-in-asp-net-core-3-1/50639)

<div class="topic-metadata">

**Author:** [@mark.norgate1](https://community.auth0.com/u/mark.norgate1)\
**Replies:** 3\
**Last updated:** [September 30, 2020, 3:58pm UTC](https://community.auth0.com/t/getting-access-to-decoded-jwt-in-asp-net-core-3-1/50639 "2020-09-30T15:58:04Z")

</div>

Hi there I have an ASP.NET Core 3.1 backend using SignalR to communicate with clients, rather than ASP.NET Core controllers. I am struggling to get access to the JWT, in particular, the sub from the JWT which I need. Th…

---

## [IE11 Does not sign in Auth0 User](https://community.auth0.com/t/ie11-does-not-sign-in-auth0-user/45731)

<div class="topic-metadata">

**Author:** [@rramirez](https://community.auth0.com/u/rramirez)\
**Replies:** 1\
**Last updated:** [July 3, 2020, 10:08am UTC](https://community.auth0.com/t/ie11-does-not-sign-in-auth0-user/45731 "2020-07-03T10:08:34Z")

</div>

Hi, I have an OpenIdConnect, Auth0 implementation using Asp.net core 2 and it’s working correctly in all major browsers except IE11. For IE11 when I click on the button to take me to my external IDP provider for login t…

---

## [Custom State persistence and validation using Asp.net core Open Id Connect (OIDC) middleware](https://community.auth0.com/t/custom-state-persistence-and-validation-using-asp-net-core-open-id-connect-oidc-middleware/45502)

<div class="topic-metadata">

**Author:** [@rramirez](https://community.auth0.com/u/rramirez)\
**Replies:** 1\
**Last updated:** [June 30, 2020, 2:41am UTC](https://community.auth0.com/t/custom-state-persistence-and-validation-using-asp-net-core-open-id-connect-oidc-middleware/45502 "2020-06-30T02:41:37Z")

</div>

Hey everyone, I’m attempting to persist some application state across my Auth0 authentication request, but I’m having trouble finding documentation surrounding how to do it. I’m using the following technologies: Asp.n…

---

## [ASP.NET Core 3.1 with Razorpages](https://community.auth0.com/t/asp-net-core-3-1-with-razorpages/39733)

<div class="topic-metadata">

**Author:** [@cb1](https://community.auth0.com/u/cb1)\
**Replies:** 0\
**Last updated:** [March 20, 2020, 7:00pm UTC](https://community.auth0.com/t/asp-net-core-3-1-with-razorpages/39733 "2020-03-20T19:00:01Z")

</div>

Hi. I have just upgraded our codebase from asp core 2.2 to 3.1. That went ok, but now I cannot get it to work with auth0 authentication. It keeps failing with correlation error after the challenge has been issued, I have…

---

## [Login via Postman on a .net core 3 app using Auth0](https://community.auth0.com/t/login-via-postman-on-a-net-core-3-app-using-auth0/39246)

<div class="topic-metadata">

**Author:** [@vics](https://community.auth0.com/u/vics)\
**Replies:** 1\
**Last updated:** [March 13, 2020, 3:00pm UTC](https://community.auth0.com/t/login-via-postman-on-a-net-core-3-app-using-auth0/39246 "2020-03-13T15:00:14Z")

</div>

I have a .net app with login setup via Auth0 (works fine with user interaction) but I want to login with a script with no user interaction, which isn’t working. Basically I want to run a LogicApp or some script with hard…

---

## [Code sample project for implementing the Resource Owner Password Grant using .NET Core](https://community.auth0.com/t/code-sample-project-for-implementing-the-resource-owner-password-grant-using-net-core/21099)

<div class="topic-metadata">

**Author:** [@PingPongSet](https://community.auth0.com/u/PingPongSet)\
**Replies:** 1\
**Last updated:** [February 16, 2019, 10:01pm UTC](https://community.auth0.com/t/code-sample-project-for-implementing-the-resource-owner-password-grant-using-net-core/21099 "2019-02-16T22:01:08Z")

</div>

Hi, I am looking for code sample project for implementing the Resource Owner Password Grant using .NET Core, which can be downloaded and ran locally straight away. The link below contains only C# code snippet, https:/…

---

## [How add additional claim after login?](https://community.auth0.com/t/how-add-additional-claim-after-login/18565)

<div class="topic-metadata">

**Author:** [@marcelodiasrib](https://community.auth0.com/u/marcelodiasrib)\
**Replies:** 2\
**Last updated:** [December 6, 2018, 1:32pm UTC](https://community.auth0.com/t/how-add-additional-claim-after-login/18565 "2018-12-06T13:32:57Z")

</div>

Hi. I have two project (SPA and API Resource) After login using auth0, how I add new custom claim in API Resource?

---

## [Hex Problems with asp.net core 2](https://community.auth0.com/t/hex-problems-with-asp-net-core-2/9388)

<div class="topic-metadata">

**Author:** [@alboy060694](https://community.auth0.com/u/alboy060694)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 3:11pm UTC](https://community.auth0.com/t/hex-problems-with-asp-net-core-2/9388 "2018-12-17T15:11:44Z")

</div>

Hey guys, sry for my bad english. I have user the Quick setup options, i become alltime this error: An unhandled exception occurred while processing the request. XmlException: ‘.’, hexadecimal value 0x00, is an invali…

---

## [Bad link in tutorial in documentation for ASP.NET Core 1](https://community.auth0.com/t/bad-link-in-tutorial-in-documentation-for-asp-net-core-1/8972)

<div class="topic-metadata">

**Author:** [@mattwelke](https://community.auth0.com/u/mattwelke)\
**Replies:** 1\
**Last updated:** [December 14, 2017, 5:33pm UTC](https://community.auth0.com/t/bad-link-in-tutorial-in-documentation-for-asp-net-core-1/8972 "2017-12-14T17:33:41Z")

</div>

In the tutorial ASP.NET Core Authentication Tutorial there is a part at the top saying: Heads up! This article refers to version 1.0 of the .Net Core platform. If you are looking for instructions on how to secure .N…

[Next page](https://community.auth0.com/tag/aspnet-core/269.md?match_all_tags=true&page=1&tags%5B%5D=aspnet-core)
