HDFGroup / h5pyd

h5py distributed - Python client library for HDF Rest API
Other
115 stars 38 forks source link

Support ACL ops #6

Closed jreadey closed 7 years ago

jreadey commented 8 years ago

Add support for ACL operations.

ahalota commented 8 years ago

If this isn't available right now, does that mean I won't be able to edit a file that requires authentication to POST?

jreadey commented 8 years ago

I can cook up something to get you started -- say read username & password from environment variables and pass that in the auth header of each request.

Can you try it out on a non-secure h5serv instance and see if there are any problems with the h5pyd functionality?

ahalota commented 8 years ago

Sure, I'll do a test on my local non-secure h5serv instance in the next 2 hours and let you know how it goes.

jreadey commented 7 years ago

ACL ops are implemented in this commit: https://github.com/HDFGroup/h5pyd/commit/45db3f4a9f58d58b6aa0e7909e3977f4e999ca1d.

@ahalota - can you try this out and let me know if you see any problems.

Take a look at test_file.py, test_auth() to see how to use ACLs. (Also this section in the h5serv docs is helpful: http://h5serv.readthedocs.io/en/latest/AclOps/index.html)