-
Notifications
You must be signed in to change notification settings - Fork 146
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
Support for non-Basic Auth in scrapyd-deploy #15
Comments
I foresee a few ways to solve this issue...
A more generic solution might be to simply allow users to specify additional HTTP headers manually via command-line arguments. This would allow us to use OAuth2 authentication but would also allow other use cases which require custom headers.
|
Can you explain how it can be done? |
@VlaGrishenko, scrapyd-client/scrapyd-client/scrapyd-deploy Lines 207 to 210 in 47a7c7a
You need to add a username and password to your target in scrapy.cfg. scrapyd doesn't support authorization but you can configure it to listen only on 127.0.0.1 and then use apache to proxy connections from elsewhere while requiring them to provide credentials. You still however trust users of the same computer connecting on 127.0.0.1 without auth. |
My team is working on a set of scrapy spiders which we want to deploy to a scrapyd server. Our scrapyd server is configured to use an oauth2 proxy to authenticate traffic.
On all of our requests to our Scrapyd API, we need the following header to authenticate our requests:
Authorization: Bearer 1/AbC123
where
1/AbC123
is a OAuth2 access token.Currently the
scrapyd-deploy
utility only supports usingBasic
auth.The text was updated successfully, but these errors were encountered: