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

Fix/proxy auth #15

Merged
merged 2 commits into from
Jul 13, 2024
Merged

Fix/proxy auth #15

merged 2 commits into from
Jul 13, 2024

Conversation

jxlil
Copy link
Owner

@jxlil jxlil commented Jul 13, 2024

Now RequestParser does not handle proxy authentication, this is to be able to use custom authentications:

yield Request(
            url=f"http://example.com",
            headers={
                "Proxy-Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyX2lkIiwiZXhwIjowMDAwMDAwMDAwfQ.8ZLkrPvu9-hKLnq8fghbZYdv-a-KMJfHtSndfFmT3PQ",
            },
            meta={
                "impersonate": "chrome110",
                "proxy": "http://0.0.0.0:80000",
            },
        )
yield Request(
            url=f"http://example.com",
            meta={
                "impersonate": "chrome110",
                "proxy": "http://0.0.0.0:80000",
                "impersonate_args": {
                    "proxy_auth": ("user", "passw"),
                },
            },
        )

Closes #13

@jxlil jxlil merged commit 44ee1f6 into master Jul 13, 2024
@jxlil jxlil deleted the fix/proxy_auth branch July 13, 2024 01:40
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.

Support proxy authentication with dictionary
1 participant