def METHOD_NAME(self, request, response):
    if getattr(request, 'krb5_login', False):
        print('%s: set kerberos cookie!' % id(self))
        self._set_auth_cookie(request, response)
    return response