-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impersonate user #802
Comments
I wouldn't play with
|
Possible solution posted (thanks @rubyconvict ), closing for now. |
So anyone has a code snippet that I can use to do impersonation ? |
user = User.find(1)
user_token = user.create_token
user.save!
{
"Access-Token" => user_token.token,
"Client" => user_token.client,
"Expiry" => user_token.expiry,
"Uid" => user.uid,
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm very frustrated with this, maybe you can help me. I'm trying to do impersonate a user, but whenever I update the page the session is changed.
My controller method bellow:
Any idea how do this or tip? Thanks!
The text was updated successfully, but these errors were encountered: