-
Notifications
You must be signed in to change notification settings - Fork 4k
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 authentication for repository_ctx.download #7469
Comments
I would even ask for not only Basic but NTLM/SSPI authentication. |
Thanks to @aehlig's work, repository_ctx.download now supports authentication through netrc. |
This is indeed implemented as per the approved design on adding authentication to downloads in commits 24cf645, 38cfc18, e1e074c, and c26e339. |
Current Bazel documentation about |
Please share how to do it :) |
@igorgatis Could you please share your findings? |
I would like to use a Bearer token here instead of basic auth. Is this possible? I need to access a private company maven repository. @aehlig It seems you've proposed and implemented the auth feature. Could you give some more insights? Thanks! |
Description of the problem / feature request:
The API of
repository_ctx.download
doesn't allow to supply authentication information.Feature requests: what underlying problem are you trying to solve with this feature?
I need to be able to download from an url that requires authentication. At a very minimum BASIC authentication should be supported.
Ideally, it would be nice to supply authentication information in a central file for all Bazel builds and independent/decoupled from Bazel BUILD and WORKSPACE files checked into Git.
The text was updated successfully, but these errors were encountered: