djanosik / Moon.AspNetCore

Extensions for ASP.NET Core framework
MIT License
3 stars 0 forks source link

AuthenticateResult.Success cannot have null ticket #2

Open sandromastronardi opened 2 years ago

sandromastronardi commented 2 years ago

In .NET Core 3.1 this gives an error:

https://github.com/djanosik/Moon.AspNetCore/blob/85bdb093bd912c7c416f718325b184abcae650f4/src/Moon.AspNetCore.Authentication.MSOFBA/MSOFBAuthenticationHandler.cs#L29

  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...