Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/p/t/ptahcrowd-0.2/ptahcrowd/providers/facebook.py   ptahcrowd(Download)
from ptahcrowd.providers import Storage, AuthenticationComplete
from ptahcrowd.providers.exceptions import AuthenticationDenied
from ptahcrowd.providers.exceptions import CSRFError
from ptahcrowd.providers.exceptions import ThirdPartyFailure
 
def facebook_process(request):
    """Process the facebook redirect"""
    if request.GET.get('state') != request.session.get('facebook_state'):
        raise CSRFError("CSRF Validation check failed. Request state %s is "
                        "not the same as session state %s" % (

src/p/t/ptahcrowd-HEAD/ptahcrowd/providers/facebook.py   ptahcrowd(Download)
from ptahcrowd.providers import Storage, AuthenticationComplete
from ptahcrowd.providers.exceptions import AuthenticationDenied
from ptahcrowd.providers.exceptions import CSRFError
from ptahcrowd.providers.exceptions import ThirdPartyFailure
 
def facebook_process(request):
    """Process the facebook redirect"""
    if request.GET.get('state') != request.session.get('facebook_state'):
        raise CSRFError("CSRF Validation check failed. Request state %s is "
                        "not the same as session state %s" % (