Ich benutze Django, Python Social Auth und Steam. Zum Loggen habe ich eine Anfrage an Steam gesendet ({% url social: begin steam%}), und ich habe Steam Logging-Seite. Ich gab mein Login und Passwort weiter und drückte auf Login. Danach wurde ich zur Fehler-URL weitergeleitet (nicht bei Erfolg-URL). Es bedeutet, dass ich nur in Steam angemeldet war, aber nicht in meiner Website. Warum ist es passiert?
Antworten:
0 für die Antwort № 1Ich habe diese Variablen in settings.py hinzugefügt. Wenn ich sie löschte, funktioniert meine Website wie erwartet.
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",
)