-
Notifications
You must be signed in to change notification settings - Fork 128
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
file_in() URL authentication #981
Comments
cc @noamross |
One possibility would be for |
Or maybe |
drake:::analyze_code( # Walk the AST of some code.
quote({
base::sqrt(x)
file_in("a")
file_out("b")
})
)
#> $globals
#> [1] "x"
#>
#> $namespaced
#> [1] "n-MJQXGZJ2HJZXC4TU"
#>
#> $file_in
#> [1] "p-ME"
#>
#> $file_out
#> [1] "p-MI" Created on 2019-08-08 by the reprex package (v0.3.0) I hesitate to make these internals more complicated for the sake of authentication. On the other hand, we could add an argument to |
The thing that worries me is the variety of mechanisms that sites use for authentication. But I think if one provides a handle, one could load it with tokens, cookies, passwords, or other header variables. Handles could vary by different URLs within a domain, so maybe you can base the it on a partial match? e.g.,
And If the user provides handles then we should probably modify these handles to add the
|
I like your idea of supplying a named list of |
With #982 merged, I think this issue is now actionable. The test case at https://httr.r-lib.org/reference/authenticate.html looks sufficient. |
I incorporated #981 (comment) into 0ba179b. Let's follow up again if it does not work for you. |
Prework
drake
's code of conduct.Description
file_in()
supports URLs, but there is currently no way to pass along credentials user may need to get eTAGs.The text was updated successfully, but these errors were encountered: