Skip to content

New oauth cache files are not added to .gitignore, .Rbuildignore #436

Closed
@jennybc

Description

@jennybc

If cache = TRUE or cache = "some/path" (vs NA) in httr::oauth2.0_token(), a newly created .httr-oauth file is NOT in fact added to .gitignore and .Rbuildignore. This is contrary to the documentation and, I think?, behaviour at some point in the past. Update: I now think httr has always been this way.

The failure to .gitignore is the bigger problem and has lead to some googlesheets users committing and pushing tokens to GitHub (googlesheets sets cache = TRUE by default).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions