サードパーティのログインとログアウトにpython-social-auth
を使用しています。 Facebook、Twitter、Google Plusでサインインすると、最初は成功しました(ユーザー名/メールアドレスとパスワードを尋ねます)。私の問題は、ログアウトしてからどちらかを使って再度サインインすると、ユーザー名/電子メールとパスワードをもう一度聞かなくても自動的にサインインされます。私はログアウトしていませんか?python-social-authでログアウト
これは私のdisconnect pipeline
です:
SOCIAL_AUTH_DISCONNECT_PIPELINE = (
'social.pipeline.disconnect.allowed_to_disconnect',
'social.pipeline.disconnect.get_entries',
'social.pipeline.disconnect.revoke_tokens',
'social.pipeline.disconnect.disconnect',
)
これは私のログアウト図である:
from django.contrib.auth import logout as auth_logout
def logout(request):
auth_logout(request)
return render_to_response('logged-out.html', {}, RequestContext(request))
これを試してみてください: http://stackoverflow.com/questions/14529815/logout- with-django-social-auth –
@NuranAfrasiyabovこの質問を見て、すべての解決策を試しましたが、それは私を助けませんでした。それでもFacebook、Twitter、Google Plusはログアウトしてもログインしています。 –