I appreciate your reply!
I don’t think I’m passing Client.Id explicitly because they didn’t do so in the tutorial. However, after receiving the error I tried looking online for examples of how to pass that value and I tried a few things to no avail. I’m not certain if I placed the call in the correct place or if I passed the correct value… but since it didn’t seem to work I have since commented out or erased these attempts.
I feel like it will probably make it a lot easier for me to be helped if I post a bunch of code snippets, so I’ll post a snippet at the bottom of this message. But please ask me for anything you might want to look at. I just don’t want to flood this thread right away with a bunch of irrelevant code since I’m not super certain about which files/sections will or won’t be relevant for sure.
Here is a link to the tutorial I’ve been using:
https://auth0.com/docs/quickstart/webapp/aspnet-core-3/01-login
And here is the snippet of the code which seems to be causing this error:
.AddOpenIdConnect("Auth0", options =>
{
// ...
// options.ClientId = "mvc";
options.Events = new OpenIdConnectEvents
{
// handle the logout redirection
OnRedirectToIdentityProviderForSignOut = (context) =>
{
var logoutUri = $"https://{Configuration["Auth0:Domain"]}/v2/logout?client_id={Configuration["Auth0:ClientId"]}";
var postLogoutUri = "https://localhost:44351/";
if (!string.IsNullOrEmpty(postLogoutUri))
{
if (postLogoutUri.StartsWith("/"))
{
// transform to absolute
var request = context.Request;
postLogoutUri = request.Scheme + "://" + request.Host + request.PathBase + postLogoutUri;
}
logoutUri += $"&returnTo={ Uri.EscapeDataString(postLogoutUri)}";
}
context.Response.Redirect(logoutUri);
context.HandleResponse();
return Task.CompletedTask;
}
};
});