I found a typo in the book chapter "8 Authentication and Authorization" in section 10. The name of the first parameter should be returnUrl and not redirectUri in Program.cs. The code i GitHub repository is correct:
app.MapGet("account/login", async (string returnUrl, HttpContext
context) =>
{
var authenticationProperties = new LoginAuthenticationPropertiesBuilder()
.WithRedirectUri(returnUrl)
.Build();
await context.ChallengeAsync(Auth0Constants.AuthenticationScheme, authenticationProperties);
});
I found a typo in the book chapter "8 Authentication and Authorization" in section 10. The name of the first parameter should be
returnUrl
and notredirectUri
in Program.cs. The code i GitHub repository is correct:Thanks for an excellent book!