Example #1
0
 def process_request(self, request):
   if not request.principal:
     try:
       request.principal, request.oauth_request = security.get_principal(request)
     except:
       # to get around an annoying bug for now, when auth fails
       pass
Example #2
0
 def process_request(self, request):
     if not request.principal:
         try:
             request.principal, request.oauth_request = security.get_principal(
                 request)
         except:
             # to get around an annoying bug for now, when auth fails
             pass
  def process_request(self, request):

    # django 1.3.0 fails to create a QueryDict for request.POST if we access
    # request.raw_post_data first, but django 1.3.1 raises an exception if
    # we read request.POST and subsequently read request.raw_post_data.
    #
    # So, we preemptively read the appropriate variable first, depending on
    # the current version of django
    self.avoid_post_clobbering(request)

    request.principal, request.oauth_request = security.get_principal(request)
Example #4
0
    def process_request(self, request):

        # django 1.3.0 fails to create a QueryDict for request.POST if we access
        # request.raw_post_data first, but django 1.3.1 raises an exception if
        # we read request.POST and subsequently read request.raw_post_data.
        #
        # So, we preemptively read the appropriate variable first, depending on
        # the current version of django
        self.avoid_post_clobbering(request)

        request.principal, request.oauth_request = security.get_principal(
            request)
 def process_request(self, request):
   request.principal, request.oauth_request = security.get_principal(request)
 def process_request(self, request):
     request.principal, request.oauth_request = security.get_principal(
         request)