trompamusic / trompace-client

A python library to read from and write to the Trompa CE
Apache License 2.0
1 stars 0 forks source link

trompace.connection.submit_query authentication #52

Closed aggelosgkiokas closed 3 years ago

aggelosgkiokas commented 3 years ago

It is not clear if the auth_required flag is related when we are over secure https or when we submit mutations (irrespectively we are over https)

https://github.com/trompamusic/trompa-ce-client/blob/12456bcbb81c4071cce96c8dcbd5efda04055203/trompace/connection.py#L33

alastair commented 3 years ago

From the documentation, this is required for CE Authentication, which is needed for mutations (auth_required: If true, send an authentication key with this request). This is required regardless of http or https. If you think that the documentation needs to be improved here, please make a suggestion and we can discuss it.

If it is easier, you can just send auth_required for all requests. There is no problem if you send the authentication information for a query as well. I added this functionality for users who only want to perform queries, so that they don't have to ask VD for an authentication key.