get the account details for credentials provided

def get_logged_in_account(token_manager=None,
                          app_url=defaults.APP_URL):
    """
    get the account details for credentials provided

    """
    headers = token_manager.get_access_token_headers()
    auth_url = environment.get_auth_url(app_url=app_url)
    url = "%s/api/v1/account" % auth_url

    response = requests.get(url,
                            headers=headers)

    if response.status_code == 200:
        return response.json()

    else:
        raise JutException('Error %s; %s' % (response.status_code, response.text))