Setting up Auth0 with our ASP.NET backend
We are going to use a ready-made identity service called Auth0 in our app. Auth0 implements OIDC and is also free for a low number of users. Using Auth0 will allow us to focus on integrating with an identity service rather than spending time building our own.
In this section, we are going to set up Auth0 and integrate it into our ASP.NET backend.
Setting up Auth0
Let's carry out the following steps to set up Auth0 as our identity provider:
- If you haven't already got an Auth0 account, sign up at https://auth0.com/signup.
- Once we have an Auth0 account and have logged in, we need to change the default audience in our tenant settings. To get to your tenant settings, click on the user avatar and choose Settings:
The Default Audience option is in the API Authorization Settings section. Change this to
https://qanda
:This...