+ auth_provider = request.session.get('auth_provider', None)
+ if not auth_provider:
+ request.session['auth_error'] = _(
+ "Oops, something went wrong in the middle of this process. Please try again.")
+ logging.error("Missing session data when trying to complete user registration: %s" % ", ".join(
+ ["%s: %s" % (k, v) for k, v in request.META.items()]))
+ return HttpResponseRedirect(reverse('auth_signin'))
+
+ provider_class = AUTH_PROVIDERS[auth_provider].consumer