Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AuthenticateResult.Success cannot have null ticket #2

Open
sandromastronardi opened this issue Jul 29, 2022 · 0 comments
Open

AuthenticateResult.Success cannot have null ticket #2

sandromastronardi opened this issue Jul 29, 2022 · 0 comments

Comments

@sandromastronardi
Copy link

In .NET Core 3.1 this gives an error:

return Task.FromResult(AuthenticateResult.Success(null));

  An unhandled exception has occurred while executing the request.

System.ArgumentNullException: Value cannot be null. (Parameter 'ticket')
at Microsoft.AspNetCore.Authentication.AuthenticateResult.Success(AuthenticationTicket ticket)
at Moon.AspNetCore.Authentication.MSOFBA.MSOFBAuthenticationHandler.HandleAuthenticateAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.AuthenticateAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

the ticket cannot be null...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant