Temporary Session Based Claims in ASP.NET Core Identity
问题 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