Я использую django, python social auth и Steam. Для регистрации я отправил запрос на Steam ({% url social: begin steam%}), и я получил страницу регистрации Steam. Я передал свой логин и пароль и нажал логин. После этого я перенаправлял URL-адрес ошибки (не на URL-адрес успеха). Это значит, что я был зарегистрирован только в Steam, но не на моем веб-сайте. Так почему это произошло?Почему Steam OpenID перенаправляет меня на ошибку dgango?
0
A
ответ
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',
)