Did I find the right examples for you? yes no

All Samples(13)  |  Call(8)  |  Derive(0)  |  Import(5)

src/p/o/pontoon-HEAD/pontoon/base/views.py   pontoon(Download)
from django.utils.encoding import smart_text
from django_browserid import verify as browserid_verify
from django_browserid import get_audience
 
from pontoon.administration.utils.vcs import commit_to_vcs
        return HttpResponseBadRequest()
 
    verification = browserid_verify(assertion, get_audience(request))
    if not verification:
        return HttpResponseForbidden()
 
    response = "error"
    user = authenticate(assertion=assertion, audience=get_audience(request))

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/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 _
            request, request.POST.get('assertion'),
            is_mobile=is_mobile,
            browserid_audience=browserid_audience or get_audience(request))
    if profile is not None:
        auth.login(request, profile)

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
def get_audience(request):
    if settings.DEV:
        # This is insecure but convenient.
        return get_aud_from_request(request)
    else:

src/d/j/django-mongo-auth-0.1.2/mongo_auth/views.py   django-mongo-auth(Download)
        """
        self.assertion = form.cleaned_data['assertion']
        self.audience = django_browserid.get_audience(self.request)
        self.user = auth.authenticate(browserid_assertion=self.assertion, browserid_audience=self.audience, request=self.request)
        assert self.user.is_authenticated()

src/z/a/zamboni-HEAD/mkt/account/views.py   zamboni(Download)
import basket
import commonware.log
from django_browserid import get_audience
from django_statsd.clients import statsd
from rest_framework import status
                request, serializer.data['assertion'],
                browserid_audience=serializer.data['audience'] or
                                   get_audience(request),
                is_mobile=serializer.data['is_mobile'],
            )

src/d/j/django-mongo-auth-HEAD/mongo_auth/views.py   django-mongo-auth(Download)
        """
        self.assertion = form.cleaned_data['assertion']
        self.audience = django_browserid.get_audience(self.request)
        self.user = auth.authenticate(browserid_assertion=self.assertion, browserid_audience=self.audience, request=self.request)
        assert self.user.is_authenticated()