I'm trying to use a token I've generated per this KB but example is limited to curl and while it works for one and looks like password is just being replaced with the random generated (a token), the same approach (to use a part after : as a password) doesn't work in Python.
If I have a token of john.doe@example.com:asdghlkj3jtklaslkdf, then code below
getCookie = requests.post(url=base + '/rest/auth/1/session', data='{ "username": "' + username + '", "password": "' + password + '" }', headers={'Content-Type': 'application/json'})returns "Login failed", if I use john.doe@example.com as a user and asdghlkj3jtklaslkdf as a password.