python-social-auth

python oauthlib: in escape ValueError “Only unicode objects are escapable”

被刻印的时光 ゝ 提交于 2021-02-18 10:51:34
问题 I'm using python-social-auth to login with social networks from my Django application. On my local machine everything works fine, but when I deploy to a server I get the following error: oauthlib.oauth1.rfc5849.utils in escape ValueError: Only unicode objects are escapable. Got None of type <type 'NoneType'>. Stacktrace: File "django/core/handlers/base.py", line 112, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "social/apps/django_app/utils.py",

social-auth-app-django facebook backend state with redirect_uri

杀马特。学长 韩版系。学妹 提交于 2021-01-27 12:24:42
问题 I know my question sounds like a duplicate, but I've looked everywhere without finding any solution. I am working on implementing social logins for my django webapp. So far google, twitter and yahoo logins have worked as expected. But facebook always gives the error below: URL blocked: This redirect failed because the redirect URI is not white-listed in the app's client OAuth settings. Make sure that the client and web OAuth logins are on and add all your app domains as valid OAuth redirect