I've worked on a couple projects recently that use OpenID connect (OIDC) for the login/user management flow. In both of these we started off using IdentityServer for this.
On one of these projects we wanted to try using Auth0 as the identity provider to make use of the user management features it provides. As this supports OIDC this should have been a pretty straight forward switch.
The good news is that the switch was fairly straightforward, but there were a couple of gotchas to watch out for.
The original config when using Identity Server looked something like this:
To work with Auth0 this had to be updated to something like this:
The main changes required are:
Once I'd made those changes the application was running correctly again.