Did I find the right examples for you? yes no

All Samples(9)  |  Call(5)  |  Derive(0)  |  Import(4)

src/z/a/zamboni-HEAD/apps/users/views.py   zamboni(Download)
 
import commonware.log
from django_browserid import get_audience, verify
from django_statsd.clients import statsd
from tower import ugettext as _
    log.debug('Verifying Persona at %s, audience: %s, '
              'extra_params: %s' % (url, browserid_audience, extra_params))
    result = verify(assertion, browserid_audience,
                    url=url, extra_params=extra_params)
    if not result:

src/w/e/webpay-HEAD/webpay/auth/views.py   webpay(Download)
 
from curling.lib import HttpClientError
from django_browserid import (get_audience as get_aud_from_request,
                              verify as verify_assertion)
from django_browserid.forms import BrowserIDForm
        log.info('Re-verifying Persona assertion. url: %s, audience: %s, '
                 'extra_params: %s' % (url, audience, extra_params))
        result = verify_assertion(assertion, audience, extra_params)
 
        log.info('Reverify got result: %s' % result)
                 'extra_params: %s, assertion: %s' % (url, audience,
                                                      extra_params, assertion))
        result = verify_assertion(assertion, audience, extra_params)
        if result:
            log.info('Persona assertion ok: %s' % result)

src/r/e/remo-HEAD/remo/base/views.py   remo(Download)
from django import http
from django_browserid import BrowserIDException, get_audience, verify
from django_browserid.auth import default_username_algo
from django_browserid.views import Verify
from django.conf import settings
        self.assertion = form.cleaned_data['assertion']
        self.audience = get_audience(self.request)
        result = verify(self.assertion, self.audience)
        _is_valid_login = False
 

src/p/o/pontoon-HEAD/pontoon/base/views.py   pontoon(Download)
from django.utils.datastructures import MultiValueDictKeyError
from django.utils.encoding import smart_text
from django_browserid import verify as browserid_verify
from django_browserid import get_audience
 
        return HttpResponseBadRequest()
 
    verification = browserid_verify(assertion, get_audience(request))
    if not verification:
        return HttpResponseForbidden()