Revert Impersonate

I have successfully implemented an Impersonate function for admin-type users to log in as others. I am wondering if it’s possible to now write a RevertImpersonate, where the service re-authenticates back to the original user, without him having to log out and back in.

I was thinking it might have something to do with storing the original SessionId in the impersonated session (as an extra variable), and then somehow authenticating using that SessionId.

1 Like

There’s no concept/feature in ServiceStack, but use whatever you’re doing to impersonate, to impersonate back to the original user.