I have written a Python Client for the Supply Chain. I can create a new agent like this:
client = SupplyChainClient()
client.create_agent('test')
client.post_user('test')
After that I can create a record type and finally a record. Now I don't want to create a client before creating a new record. So I'm trying to authenticate a client with the username and password like this:
import requests
resp = requests.post('http://localhost:3000/authorization', auth=('test', '<hash value of the password>'))
print(resp.json())
I have got the hash from the RethinkDB for testing.
Every time I got this error:
{'error': 'Authorization requires username and password'}
Any ideas?