You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Django app and when next URL parameter contains unicode (UTF-8) string, the authentication fails with following exception:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 114, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/social/apps/django_app/utils.py", line 45, in wrapper
return func(request, backend, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/social/apps/django_app/views.py", line 12, in auth
return do_auth(request.social_strategy, redirect_name=REDIRECT_FIELD_NAME)
File "/usr/local/lib/python2.7/dist-packages/social/actions.py", line 20, in do_auth
redirect_uri)
File "/usr/local/lib/python2.7/dist-packages/social/utils.py", line 55, in sanitize_redirect
not isinstance(redirect_to.decode(), six.string_types):
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe6' in position 21: ordinal not in range(128)
The text was updated successfully, but these errors were encountered:
I'm using Django app and when next URL parameter contains unicode (UTF-8) string, the authentication fails with following exception:
The text was updated successfully, but these errors were encountered: