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

Add pass/login functionality #331

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Add pass/login functionality #331

wants to merge 8 commits into from

Conversation

ocefpaf
Copy link
Member

@ocefpaf ocefpaf commented Jan 17, 2024

This is the continuation of #303.

@@ -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)
Copy link
Member Author

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

Copy link
Contributor

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.

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

Successfully merging this pull request may close these issues.

3 participants