'Get a dict of the current authenticated user\'s session information.'

def session(self):

    url = u'{server}/rest/auth/1/session'.format(**self._options)
    if isinstance(self._session.auth, tuple):
        authentication_data = {u'username': self._session.auth[0], u'password': self._session.auth[1]}
        r = self._session.post(url, data=json.dumps(authentication_data))
    else:
        r = self._session.get(url)
    user = User(self._options, self._session, json_loads(r))
    return user
