Skip to content

Is the default path for application default credentials correct? #115

@acroz

Description

@acroz

I'm having trouble to get application default credentials to work.

When I call the application default credentials loader directly:

gargle::credentials_app_default()

I get the following error message:

Error in open.connection(con, "rb") : cannot open the connection
In addition: Warning messages:
1: In file(txt) :
  'raw = FALSE' but '/home/faculty/.config/gcloud' is not a regular file
2: In open.connection(con, "rb") :
  cannot open file '/home/faculty/.config/gcloud': it is a directory

gargle appears to be attempting to load ~/.config/gcloud instead of ~/.config/gcloud/application_default_credentials.json.

Could it be that this line

pth <- path_home(".config", "gcloud")

needs to be changed to?:

pth <- path_home(".config", "gcloud", pth)

(Prior to this line pth has been assigned the value "application_default_credentials.json")

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