def _scrub_uri(uri):
    """scrub auth info from uri"""
    if ('/api/authorizations/cookie/' in uri or 
        '/api/authorizations/token/' in uri):
        uri = uri.rsplit('/', 1)[0] + '/[secret]'
    return uri
