Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable http authentication in pydas api #6

Open
mgrauer opened this issue Jul 17, 2013 · 0 comments
Open

enable http authentication in pydas api #6

mgrauer opened this issue Jul 17, 2013 · 0 comments

Comments

@mgrauer
Copy link
Contributor

mgrauer commented Jul 17, 2013

Currently http authentication is available in some methods, but not really at the top level api of pydas. Think about how to provide this in the credential provider methods.

This can be accomplished by a call of

pydas.session.communicator.set_auth(("username",'password))

We need to take in auth as an optional keyword for the credential provider methods, or possibly all the public api methods. This could be accomplished in the login method:

https://github.com/midasplatform/pydas/blob/master/pydas/api.py#L39

Also, the lower level download_item (and possibly other) calls will need to have parameters updated to include auth.

https://github.com/midasplatform/pydas/blob/master/pydas/drivers.py#L406

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant