Question: I am kind of scratching my head to resolve this issue where I have to remove all the Claims in one go. When I use the below code, I get this error Collection was modified; enumeration operation may not ...

Question: I am currently experimenting with external login providers like Google Authentication in my ASP.NET application. As you can see on my Program.cs i’am running .NET6. After the Google-Login was successfull, the ClaimsPrincipal has exactly one ClaimsIdentity (IsAuthenticated == true). ...