import requests


def _get_projects(fqdn, token):
    """ Get the projects visible to this scope """
    projects_url = f"{fqdn}/auth/projects"
    projects_headers = {'X-Auth-Token': token}
    projects_response = requests.get(projects_url, headers=projects_headers, verify=False)
    return projects_response.json()["projects"]