Based on the OAuthCreatingTicketContext source code on GitHub, the last initializer argument is a JsonElement
.
This has been replaced on 5th of February 2019 as stated in following linked-commit.
Replace JObject with JsonDocument in Authentication (#7105)
And as per Pull Request #7105:
Replace JObject with JsonDocument in Authentication
Nothing tells me that it's been rejected and rather say it's been merged.
So why is it that in my project in .Net 6 I'm still stuck with Newtonsoft and its JObject?
How can I get the replaced version using JsonElement
?
Because I just added the package Microsoft.AspNetCore.Authentication.OAuth (2.2.0)
from the Nuget Package Manager within VS2022, and this is the version of OAuthCreatingTicketContext
I got.