'Entry point for auth requests (ones that match the self.auth_prefix).
Should return a WSGI-style callable (such as swob.Response).
:param req: swob.Request object'

def handle_request(self, req):

    req.start_time = time()
    handler = None
    try:
        (version, account, user, _junk) = split_path(req.path_info, 1, 4, True)
    except ValueError:
        self.logger.increment('errors')
        return HTTPNotFound(request=req)
    if (version in ('v1', 'v1.0', 'auth')):
        if (req.method == 'GET'):
            handler = self.handle_get_token
    if (not handler):
        self.logger.increment('errors')
        req.response = HTTPBadRequest(request=req)
    else:
        req.response = handler(req)
    return req.response
