Simulate a different account with a different provider


(Soren Malling) #1

I’m looking for a way to allow a user to turn into a different user (simulate/impersonate).

The account I want to simulate has one different provider (Dashboard provider, configured via Settings.yaml) and the “admin” user I works another (Backoffice provider, configured via Settings.yaml).

Can I somehow work directly with AuthenticationProvider at do as it does in a UsernamePassword Provider (setting the account to $account)

My main issue is that inside my backoffice, I don’t get the token from my Dashboard - so I can’t use the authenticationProvider duirectly (as the impersonate tool does)

My token is not considered “active” (which is correct, when looking at the requestPattern) so I can’t get to it