2016-07-18 31 views
0

Ich benutze Django, Python Social Auth und Steam. Zum Loggen habe ich eine Anfrage an Steam geschickt ({% url social: begin steam%}), und ich habe die Steam Logging Seite. Ich gab mein Login und Passwort und drückte auf Einloggen. Danach wurde ich auf Fehler-URL umgeleitet (nicht auf Erfolg URL). Es bedeutet, dass ich nur in Steam eingeloggt war, aber nicht auf meiner Website. Warum ist es passiert?Warum Steam OpenID mich auf Fehler Dgango Sicht umleiten?

Antwort

0

Ich habe diese Variablen in settings.py hinzugefügt, als ich sie löschte meine Website zu arbeiten, wie ich es erwarte.

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

)