def get(self, request, *args, **kwargs):
        result = None
        if request.GET.get('apiconnection', None):
            if request.user.is_authenticated() and 'OdnoklassnikiAppBackend' not in request.session.get(BACKEND_SESSION_KEY, ''):
                logout(request)
            result = complete(request, 'odnoklassnikiapp')
        if isinstance(result, HttpResponse):
            return result
        else:
            if not request.user.is_authenticated() or 'OdnoklassnikiAppBackend' not in request.session.get(BACKEND_SESSION_KEY, ''):
                request.user = AnonymousUser()
        
        context = self.get_context_data(params=kwargs)
        return self.render_to_response(context)
dataset/ETHPy150Open omab/django-social-auth/example/app/odnoklassniki.py/OdnoklassnikiApp.get/original