-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Receiving "You are already signed in" flash[:error] #58
Comments
Hi @sethtrain . Could you give a try and set Thank you! |
Hi @oivoodoo Unfortunately, this setting doesn't seem to fix the issue. |
After doing some debugging on this in RubyMine I am seeing |
@sethtrain could you verify you expires_in settings? Now token has only 1.minute by default to click Login As from UI |
@oivoodoo Yes, it is |
@sethtrain need to run away for one hour. come back to give a try to review the code again. I would suggest for now to add pry inside of masquerade! and show action if you have time to debug otherwise I will review it. thank you! |
@oivoodoo Sure thing, I'm deep in the debugger at the moment so I will let you know what I find. Thank you for your help. |
@oivoodoo I figured it out. I was running in development mode with |
@sethtrain oh. it sounds great! thank you that you resolved the issue. |
@oivoodoo Thanks for sticking with me while I debugged it. I will now close the issue. |
I'm actually getting this too... Is there a way to fix it without enabling caching? |
@garymh I didn't find a way to do it without enabling caching. |
@oivoodoo I love this library, and it's 99% of the way to "it just works" status. Can you please add instruction in your Developers can run |
Hey @pjforde1978 . I am a bit busy the last days, if you have some time I would really appreaciate to have the pull request to update README.md. Thank you! |
After setting up
devise
anddevise_masquerade
all standard install from the documentation I get theflash[:error]
result of "You are already signed in". I am running version4.7.1
ofdevise
and1.2.0
ofdevise_masquerade
.If you look at the development log you will see
Filter chain halted as :require_no_authentication rendered or redirected
Below is the log file in hopes that it helps with the issue:
On redirect to
HomeController
there are some things that happen because I am able to successfully see a button that will reverse the masquerade souser_masquerade?
seems to be working successfully. Theback_masquerade_path
also works as you would expect.On the views the
current_user
isn't the user I expect it to be as it is the user logged in before masquerading.The text was updated successfully, but these errors were encountered: