2016-07-18 2 views
0

저는 django, python social auth 및 Steam을 사용하고 있습니다. 로깅을 위해 저는 Steam ({% url social : begin 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', 

)