CAVEconnectome / CAVEclient

This is the python client for accessing REST APIs within the Connectome Annotation Versioning Engine.
https://caveconnectome.github.io/CAVEclient/
MIT License
22 stars 11 forks source link

Authclient basic fix #12

Closed ceesem closed 3 years ago

ceesem commented 3 years ago

This fixes some bugs in setting up auth and returning interpretable errors if the auth configuration. I also added a general base.handle_response function to deal with both the raise_for_status error and to check for redirects to google logins. At the moment, it's doing the most naive thing possible and looking for any redirects. This could be made more clever if need be.