-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add pass/login functionality #331
base: main
Are you sure you want to change the base?
Conversation
@@ -42,7 +42,23 @@ def _sort_url(url): | |||
def _urlopen(url: str, auth: tuple | None = None, **kwargs: dict) -> BinaryIO: | |||
if "timeout" not in kwargs.keys(): | |||
kwargs["timeout"] = 60 | |||
response = httpx.get(url, follow_redirects=True, auth=auth, **kwargs) | |||
user = kwargs.pop("user", None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abkfenris I have no idea how/where to test this. I never encountered a password protected ERDDAP server. Do you have any tips for me here to move this PR forward?
PS: Everything may change soon if we get a GSoC candidate to work on ioos/gsoc#44
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I haven't played with a passworded ERDDAP either, and it's been long enough that the research that I've done has been garbage collected.
This is the continuation of #303.