2016-07-18 6 views
0

私はdjango、python social authとSteamを使用しています。 私はSteam({%url social:begin steam%})にリクエストを送りました.とSteam loggingページがあります。私はログインとパスワードを渡してログインしました。その後、私はエラー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', 

) 
関連する問題