Open zimberzimber opened 1 year ago
Normally, you would use social authentication with cookies. What's your intention only having a single authentication scheme?
Normally, you would use social authentication with cookies. What's your intention only having a single authentication scheme?
I was learning the interaction with Googles authentication alongside a group of people, many of who ran into this issue.
Add the following code snippets for cookie auth: https://learn.microsoft.com/en-us/aspnet/core/security/authentication/cookie?view=aspnetcore-7.0
Our Google auth docs don't clearly state these are required when you're not using the Identity framework. https://learn.microsoft.com/en-us/aspnet/core/security/authentication/social/google-logins?view=aspnetcore-7.0
Thank you, it has solved the crashing.
However, the primary issue here is that the program simply crashes instead of raising an exception to point the developer in the right direction.
Hmm, -1073741819 is 0xC0000005, or Access Violation. It shouldn't do that... we'll investigate.
To learn more about what this message means, what to expect next, and how this issue will be handled you can read our Triage Process document. We're moving this issue to the .NET 8 Planning milestone for future evaluation / consideration. Because it's not immediately obvious what is causing this behavior, we would like to keep this around to collect more feedback, which can later help us determine how to handle this. We will re-evaluate this issue, during our next planning meeting(s). If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact work.
Add the following code snippets for cookie auth: https://learn.microsoft.com/en-us/aspnet/core/security/authentication/cookie?view=aspnetcore-7.0
Our Google auth docs don't clearly state these are required when you're not using the Identity framework. https://learn.microsoft.com/en-us/aspnet/core/security/authentication/social/google-logins?view=aspnetcore-7.0
@Rick-Anderson can you guys please address this gap? Thanks!
As for the crashing aspect, given that we didn't get more reports of this I'm going to backlog this for now to accumulate more feedback.
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
I'm having the same problem with Facebook's authentication library in .NET v9.0.100-preview.2.24157.14
Is there an existing issue for this?
Describe the bug
ASP.NET Core has an issue with the Google authentication library on startup, where it seems to run into an endless loop which results in the following stack repeating itself until eventually exiting with error coded
-1073741819
:The issue is tied to the projects framework, not the libraries, as setting the libraries version to below 7.x but keeping the projects framework at 7 cause the issue still.
Expected Behavior
A raised exception if an error has occurred, otherwise not crashing.
Steps To Reproduce
Microsoft.AspNetCore.Authentication.Google
NuGet packageClientId
andClientSecret
(not necessarily connected to an actual client, the value just needs to be valid)Sample project repository: [Link]
Exceptions (if any)
None, it simply crashes with the error code
-1073741819
.NET Version
7.0.103
Anything else?
dotnet --info