-
Notifications
You must be signed in to change notification settings - Fork 74
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
fully sign out #5
Comments
You can redirect the user directly to the provider's sign out URL. class SessionsController < Devise::SessionsController
def new
redirect_to user_omniauth_authorize_path(:josh_id)
end
def destroy
sign_out current_user
redirect_to OmniAuth::Strategies::JoshId::SIGN_OUT_URL
end
end There might be a better way that I'm not aware of. I also noticed if you log out the Provider first, the Clients don't get automatically signed out. |
@panupan - I don't like the idea of the redirect as the provider is exposed Well, there were a couple of ideas I was playing around with - not totally One was to send a json request on any client app sign_out (instead of a Another idea was to keep the access token as a short-lived token (not 2 On Sun, Nov 11, 2012 at 4:58 AM, panupan [email protected] wrote:
|
Do you maybe know how to sign out from oauth provider so I could sign in with another user? I tried reseting session but it doesn't work. It keeps signing me in with the the same username and password.
One way is to go the the provider app and sign out, but I don't like that and would rather let my users sign out of the client app.
The text was updated successfully, but these errors were encountered: