import requests


def _connect_confluence(JIRA_USERNAME, JIRA_PASSWORD, **kwargs):
    """Connect to confluence and return a session object with auth initialized."""
    user = JIRA_USERNAME
    password = JIRA_PASSWORD
    auth = (user, password)
    session = requests.Session()
    session.auth=auth
    return session