[Iplant-api-dev] Foundation API and urllib2 in Python

Darren Boss dboss at email.arizona.edu
Thu Jun 27 13:48:18 MST 2013


I've been trying to use the foundation API via Python and I think I've
found an issue with /auth-v1/ requests. The urllib2 library in Python
won't authenticate unless the http response contains HTTP code 401
Unauthorized and a key "WWW-Authenticate". The key is missing so any
requests to /auth-v1/ fail. I did a test with /io-v1/ and it does
include WWW-Authenticate and authenticates correctly. I guess the only
thing I wouldn't be able to do is get a token for the username but I
thought I would raise the issue to see if it was just an oversight in
the API development or if this was done on purpose.


More information about the Iplant-api-dev mailing list