Did I find the right examples for you? yes no

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)
Validate a request from Twilio

:param uri: full URI that Twilio requested on your server
:param params: post vars that Twilio sent with the request
:param signature: expexcted signature in HTTP X-Twilio-Signature header
:param auth: tuple with (account_sid, token)

:returns: True if the request passes validation, False if not

src/d/j/django-twilio-0.5.1/django_twilio/decorators.py   django-twilio(Download)
 
            if request.method == 'POST':
                if not validator.validate(url, request.POST, signature):
                    return HttpResponseForbidden()
            if request.method == 'GET':
                if not validator.validate(url, request.GET, signature):

src/d/j/django-twilio-HEAD/django_twilio/decorators.py   django-twilio(Download)
 
            if request.method == 'POST':
                if not validator.validate(url, request.POST, signature):
                    return HttpResponseForbidden()
            if request.method == 'GET':
                if not validator.validate(url, request.GET, signature):

src/p/o/portfoliyo-HEAD/portfoliyo/view/sms.py   portfoliyo(Download)
        # Now that we have all the required information to perform forgery
        # checks, we'll actually do the forgery check.
        if not validator.validate(url, request.POST, signature):
            return HttpResponseForbidden()
 

src/d/j/django-twilio-sms-0.2/src/decorators.py   django-twilio-sms(Download)
            # Now that we have all the required information to perform forgery
            # checks, we'll actually do the forgery check.
            if not validator.validate(url, request.POST, signature):
                logger.error(
                    "Twilio: Invalid url signature %s - %s - %s",

src/t/w/twilio-python-HEAD/tests/test_validation.py   twilio-python(Download)
 
        assert_equal(validator.compute_signature(uri, params), expected)
        assert_true(validator.validate(uri, params, expected))