Did I find the right examples for you? yes no

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

src/a/t/atmosphere-HEAD/authentication/views.py   atmosphere(Download)
from atmosphere import settings
from atmosphere.settings import secrets
from authentication import createAuthToken, validateToken,\
    userCanEmulate, cas_loginRedirect
from authentication.models import Token as AuthToken
    if 'HTTP_X_EMULATE_USER' in request.META:
    # AND user has permission to emulate
        if userCanEmulate(username):
            logger.debug("EMULATION REQUEST:"
                         "Generating AuthToken for %s -- %s" %