omn​​iauth-google注销不起作用

时间:2018-07-03 04:13:20

标签: ruby-on-rails session omniauth-google-oauth2

我正在使用omniauth-google-oauth2建立登录和注销。首次单击“登录”时,我将重定向到account.google.com并登录。当我单击注销并再次登录 时,它将自动登录我而无需输入帐户和密码。

对于注销,我已经销毁了会话并设置了cookie。要注销后手动登录功能该怎么办?

控制台输出:

#<OmniAuth::AuthHash credentials=#<OmniAuth::AuthHash expires=true expires_at=1530593556 token="ya29.Glxxxxxx39-nW"> extra=#<OmniAuth::AuthHash id_info=#<OmniAuth::AuthHash at_hash="9LNQNsk6dez9g" aud="741325071dgbmec6sj969ajh.apps.googleusercontent.com"...
Processing by AuthController#google_callback as HTML
Parameters: {"state"=>"a69a53ebdaa9ce3b5b6082d8a17b50eafa4", "code"=>"4/AACDlTY37f_Rm6UJxfUPJezvalNVrfX5iSdsX1AnPDGna9gVLlwlLQHXJqjgJL9Xv0"}

0 个答案:

没有答案