def set_auth(auth, key=_auth_registry_key, request=None):
    'Sets an instance of :class:`Auth` in the request registry.\n\n    :param auth:\n        An instance of :class:`Auth`.\n    :param key:\n        The key used to retrieve the instance from the registry. A default\n        is used if it is not set.\n    :param request:\n        A :class:`webapp2.Request` instance used to retrieve the instance. The\n        active request is used if it is not set.\n    '
    request = (request or webapp2.get_request())
    request.registry[key] = auth
Sets an instance of :class:`Auth` in the request registry.

:param auth:
    An instance of :class:`Auth`.
:param key:
    The key used to retrieve the instance from the registry. A default
    is used if it is not set.
:param request:
    A :class:`webapp2.Request` instance used to retrieve the instance. The
    active request is used if it is not set.
def set_auth(auth, key=_auth_registry_key, request=None):
    'Sets an instance of :class:`Auth` in the request registry.\n\n    :param auth:\n        An instance of :class:`Auth`.\n    :param key:\n        The key used to retrieve the instance from the registry. A default\n        is used if it is not set.\n    :param request:\n        A :class:`webapp2.Request` instance used to retrieve the instance. The\n        active request is used if it is not set.\n    '
    request = (request or webapp2.get_request())
    request.registry[key] = auth