python-social-auth AuthCanceled exception

前端 未结 7 811
礼貌的吻别
礼貌的吻别 2020-12-15 17:24

I\'m using python-social-auth in my Django application for authentication via Facebook. But when a user tries to login, they have been redirected to the Facebook app page, a

7条回答
  •  忘掉有多难
    2020-12-15 17:50

    Just add in

    MIDDLEWARE_CLASSES = ( 'social_auth.middleware.SocialAuthExceptionMiddleware', )

    and something like

    LOGIN_ERROR_URL = '/'

    That's all or read http://django-social-auth.readthedocs.org/en/latest/configuration.html#exceptions-middleware

提交回复
热议问题