2016-07-18 36 views
0

我使用django,python社交認證和Steam。 對於日誌我發送請求到Steam({%url社會:開始蒸汽%}), 和我有Steam記錄頁面。我通過了我的登錄名和密碼,並按下登錄。之後,我重定向到錯誤URL(不是成功url)。這意味着我僅在Steam中登錄,但不在我的網站中登錄。 那麼爲什麼會發生?爲什麼Steam OpenID將我重定向到錯誤dgango視圖?

回答

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', 

) 
相關問題