Adding claims in ASP.NET Core Identity is straight forward enough, but I'm having trouble finding how to add a temporary session based claim.
My use case is such that a logged in user with their own custom claims needs to periodically have a new claim added, but only for the current session, and not persisted to the database. After they close their browser or sign out, the temporary claim should go away.
This is to satisfy a mechanism that temporarily changes the organization to which a user belongs for purposes of impersonation in an application that I'm migrating to asp.net Core.
I've found lots of advice here on SO for accomplishing this via GenerateUserIdentityAsync
in previous versions of Identity but that does not seem to be available in the new version.