我正在使用django,python social auth和Steam。 对于日志记录,我向Steam发送了get请求({%url social:begin steam%}), 我有Steam记录页面。我通过了我的登录名和密码并按下登录。之后我被重定向到错误网址(不是成功网址)。这意味着我只在Steam中登录,但不在我的网站上。 那为什么会发生呢?
答案 0 :(得分:0)
我在settings.py中添加了这些变量,当我删除它们时,我的网站开始按预期工作。
SOCIAL_AUTH_PIPELINE = (
'social.pipeline.social_auth.social_details',
'social.pipeline.social_auth.social_uid',
'social.pipeline.social_auth.auth_allowed',
'social.pipeline.social_auth.social_user',
'social.pipeline.social_auth.associate_user',
'social.pipeline.social_auth.load_extra_data',
'social.pipeline.user.user_details',
)
SOCIAL_AUTH_DISCONNECT_PIPELINE = (
# Verifies that the social association can be disconnected from the current
# user (ensure that the user login mechanism is not compromised by this
# disconnection).
'social.pipeline.disconnect.allowed_to_disconnect',
# Collects the social associations to disconnect.
'social.pipeline.disconnect.get_entries',
# Revoke any access_token when possible.
'social.pipeline.disconnect.revoke_tokens',
# Removes the social associations.
'social.pipeline.disconnect.disconnect',
)