In asp.net core, why is await context.ChallengeAsync() not working as expected?
问题 I have two questions, both of which refer to the code below: Why is authenticateResult.Succeeded false after I call authenticateResult = await context.AuthenticateAsync();? Why do I need to call "return" from my custom middleware InvokeAsync method for this to work properly? I have an asp.net core application using OpenIdConnect. The application has two controller actions; both of them have the [Authorize] attribute, so when the application starts the user is automatically put through the