# \#net-core

**URL:** https://community.auth0.com/tag/net-core/447.md

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

---

## [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:

---

## [How to resume session after browser is closed then re-opened](https://community.auth0.com/t/how-to-resume-session-after-browser-is-closed-then-re-opened/84615)

<div class="topic-metadata">

**Author:** [@hbax450](https://community.auth0.com/u/hbax450)\
**Replies:** 2\
**Last updated:** [December 27, 2022, 6:31pm UTC](https://community.auth0.com/t/how-to-resume-session-after-browser-is-closed-then-re-opened/84615 "2022-12-27T18:31:47Z")

</div>

I am using the Auth0.ASPNetCore.Authentication SDK in my Blazor Server app. Using persistent sessions, all is working. However, after a user closes their browser, then re-accesses the site, Blazor does not restore the au…

---

## [Get organization id from user login](https://community.auth0.com/t/get-organization-id-from-user-login/82750)

<div class="topic-metadata">

**Author:** [@a19daniellr](https://community.auth0.com/u/a19daniellr)\
**Replies:** 4\
**Last updated:** [September 24, 2022, 3:28pm UTC](https://community.auth0.com/t/get-organization-id-from-user-login/82750 "2022-09-24T15:28:20Z")

</div>

Hi ! I´m trying to login a user and after login get the organization ID. Let me explain it: I want to use a custom domain for my login. When the user enter the email and password, if its correct then get the token. In…

---

## [How can I get a token with organization ID](https://community.auth0.com/t/how-can-i-get-a-token-with-organization-id/83128)

<div class="topic-metadata">

**Author:** [@a19daniellr](https://community.auth0.com/u/a19daniellr)\
**Replies:** 2\
**Last updated:** [May 10, 2022, 6:09am UTC](https://community.auth0.com/t/how-can-i-get-a-token-with-organization-id/83128 "2022-05-10T06:09:24Z")

</div>

Get token with OrganizationID. I want to send a petition to an endpoint like: “https://mydomain.com/oauth/token”. This endpoint have 2 headers that I need, username and password. I use the grant\_type=password header. I …

---

## [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…

---

## [.NET Core Web API & Auth0 IDX20803 error](https://community.auth0.com/t/net-core-web-api-auth0-idx20803-error/62643)

<div class="topic-metadata">

**Author:** [@adeliab](https://community.auth0.com/u/adeliab)\
**Replies:** 3\
**Last updated:** [May 12, 2021, 11:49am UTC](https://community.auth0.com/t/net-core-web-api-auth0-idx20803-error/62643 "2021-05-12T11:49:38Z")

</div>

Hi, I’m trying out this tutorial: Authorization for ASP.NET Web APIs When I test the API with the Bearer token, I got this error instead: System.InvalidOperationException: IDX20803: Unable to obtain configuration from…

---

## [请教一个关于生成秘钥长度的问题](https://community.auth0.com/t/topic/52164)

<div class="topic-metadata">

**Author:** [@wwzorz](https://community.auth0.com/u/wwzorz)\
**Replies:** 2\
**Last updated:** [November 16, 2020, 11:32pm UTC](https://community.auth0.com/t/topic/52164 "2020-11-16T23:32:05Z")

</div>

.net core idenityserver 生成的 token秘钥有点长 怎么样才可以让其短一点,没有找到相关的文档和设置的地方,请各位大佬指点,谢谢了

---

## [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:/…

---

## [.Net Core Virtual Applications Looping Issue](https://community.auth0.com/t/net-core-virtual-applications-looping-issue/10718)

<div class="topic-metadata">

**Author:** [@acaky](https://community.auth0.com/u/acaky)\
**Replies:** 3\
**Last updated:** [September 6, 2018, 12:19pm UTC](https://community.auth0.com/t/net-core-virtual-applications-looping-issue/10718 "2018-09-06T12:19:29Z")

</div>

Hello, I have an application I created and used your quick start to add authorization, this is at the root of the site. I then created a virtual application that has the same security settings but is hosted at /Bookings…

---

## [Passing an auth Token to a second client for API access to a .NET Core 2 server flow issues](https://community.auth0.com/t/passing-an-auth-token-to-a-second-client-for-api-access-to-a-net-core-2-server-flow-issues/9127)

<div class="topic-metadata">

**Author:** [@spykedood](https://community.auth0.com/u/spykedood)\
**Replies:** 1\
**Last updated:** [January 4, 2018, 6:14pm UTC](https://community.auth0.com/t/passing-an-auth-token-to-a-second-client-for-api-access-to-a-net-core-2-server-flow-issues/9127 "2018-01-04T18:14:06Z")

</div>

I’ve made several different attempts at this with various flows and can only get so far. I am new to Auth0 and OIDC and believe that my approach is incorrect and require guidance on the best way to implement this. I have…

---

## [Error when calling new method GetUsersByEmailAsync in .Net Library 4.6.0](https://community.auth0.com/t/error-when-calling-new-method-getusersbyemailasync-in-net-library-4-6-0/8606)

<div class="topic-metadata">

**Author:** [@Mark\_Redman](https://community.auth0.com/u/Mark_Redman)\
**Replies:** 2\
**Last updated:** [October 27, 2017, 9:04pm UTC](https://community.auth0.com/t/error-when-calling-new-method-getusersbyemailasync-in-net-library-4-6-0/8606 "2017-10-27T21:04:33Z")

</div>

I am using the new API call to get users by email: var scopes = new { users = new { actions = new\] { "read" } }, …

---

## [Where is the quickstart for the custom login page (.net core)?](https://community.auth0.com/t/where-is-the-quickstart-for-the-custom-login-page-net-core/8604)

<div class="topic-metadata">

**Author:** [@Mark\_Redman](https://community.auth0.com/u/Mark_Redman)\
**Replies:** 2\
**Last updated:** [October 27, 2017, 4:51pm UTC](https://community.auth0.com/t/where-is-the-quickstart-for-the-custom-login-page-net-core/8604 "2017-10-27T16:51:50Z")

</div>

Just wanted to have another look and compare the OpenID Connect vs the Custom Login page code and can’t seem to find it anymore?

---

## [Sanity Check: RS256 JWT tokens, signing and verifying?](https://community.auth0.com/t/sanity-check-rs256-jwt-tokens-signing-and-verifying/8565)

<div class="topic-metadata">

**Author:** [@Mark\_Redman](https://community.auth0.com/u/Mark_Redman)\
**Replies:** 0\
**Last updated:** [October 24, 2017, 7:12pm UTC](https://community.auth0.com/t/sanity-check-rs256-jwt-tokens-signing-and-verifying/8565 "2017-10-24T19:12:21Z")

</div>

When we get a JWT token from Auth0, is this signed by the Auth0 “Tenant” secret key, not a client secret key? And when this is verified, using the Public Key (via jwks url e.g.: https://\[domain\]/.well-known/jwks.json), …

---

## [How do I add a grant type when creating a client (.net core 2.0)?](https://community.auth0.com/t/how-do-i-add-a-grant-type-when-creating-a-client-net-core-2-0/8523)

<div class="topic-metadata">

**Author:** [@Mark\_Redman](https://community.auth0.com/u/Mark_Redman)\
**Replies:** 1\
**Last updated:** [October 19, 2017, 4:02pm UTC](https://community.auth0.com/t/how-do-i-add-a-grant-type-when-creating-a-client-net-core-2-0/8523 "2017-10-19T16:02:59Z")

</div>

I am adding non-interactive clients of API access and looks like I need to add the client\_credentials grant type. How do I add this via the ManagementApi using the .net core library. I am using the following code to cre…

---

## [Manual Register .NET CORE 2.0](https://community.auth0.com/t/manual-register-net-core-2-0/8391)

<div class="topic-metadata">

**Author:** [@harry](https://community.auth0.com/u/harry)\
**Replies:** 6\
**Last updated:** [October 18, 2017, 9:52pm UTC](https://community.auth0.com/t/manual-register-net-core-2-0/8391 "2017-10-18T21:52:48Z")

</div>

Migrated from 1.1 to 2.0, and I implemented a custom login instead of the lock originally provided. I have login’s working and signups from external providers working - but where’s the code for registering?

---

## [Can we update Auth0 API settings via the Management API?](https://community.auth0.com/t/can-we-update-auth0-api-settings-via-the-management-api/8502)

<div class="topic-metadata">

**Author:** [@Mark\_Redman](https://community.auth0.com/u/Mark_Redman)\
**Replies:** 1\
**Last updated:** [October 17, 2017, 7:48pm UTC](https://community.auth0.com/t/can-we-update-auth0-api-settings-via-the-management-api/8502 "2017-10-17T19:48:29Z")

</div>

We have a multi-tenant application which requires our clients (3rd parties) to access an API we expose. We can create a non-interactive client and expose the Auth0 clientId and secret to provide 3rd party access, however…

---

## [Implementation Advice and what is possible with Auth0](https://community.auth0.com/t/implementation-advice-and-what-is-possible-with-auth0/7683)

<div class="topic-metadata">

**Author:** [@Mark\_Redman](https://community.auth0.com/u/Mark_Redman)\
**Replies:** 2\
**Last updated:** [August 28, 2017, 6:23pm UTC](https://community.auth0.com/t/implementation-advice-and-what-is-possible-with-auth0/7683 "2017-08-28T18:23:28Z")

</div>

Hi All, We use Auth0 to secure mult-tenant SaaS based site, this works well for username and password authentication, no issues there. (This is a .Net Core implementation, using the new OIDC compliant method) In additi…

---

## [Getting token from Google and Using with .Net Core Web Api](https://community.auth0.com/t/getting-token-from-google-and-using-with-net-core-web-api/7202)

<div class="topic-metadata">

**Author:** [@nick.savenko](https://community.auth0.com/u/nick.savenko)\
**Replies:** 1\
**Last updated:** [June 23, 2017, 6:15pm UTC](https://community.auth0.com/t/getting-token-from-google-and-using-with-net-core-web-api/7202 "2017-06-23T18:15:19Z")

</div>

Guys, I am spending almost two days trying to figure this out. I am having a SPA application and Popup Lock control: lock = new Auth0Lock(AUTH\_CONFIG.clientID, AUTH\_CONFIG.domain, { oidcConformant: true, auto…

---

## [React Native Lock token wrong audience on .NET Core server](https://community.auth0.com/t/react-native-lock-token-wrong-audience-on-net-core-server/6590)

<div class="topic-metadata">

**Author:** [@ryancormack89](https://community.auth0.com/u/ryancormack89)\
**Replies:** 1\
**Last updated:** [May 12, 2017, 4:24pm UTC](https://community.auth0.com/t/react-native-lock-token-wrong-audience-on-net-core-server/6590 "2017-05-12T16:24:07Z")

</div>

On my React Native app I am creating the a new Lock with (the auth object was added after some googling) let lock = new Auth0Lock({ clientId: 'my-long-client-id', domain: 'my-domain.eu.auth0.com', …
