MarkEdmondson1234 / googleAuthR

Google API Client Library for R. Easy authentication and help to build Google API R libraries with OAuth2. Shiny compatible.
https://code.markedmondson.me/googleAuthR
Other
175 stars 54 forks source link

Allow skipping token validity checks #228

Closed manuteleco closed 1 year ago

manuteleco commented 1 year ago

Provide a new option to tell the googleAuthR library not to perform its standard authorization validations. Users of googleAuthR can enable this option with:

options(googleAuthR.skip_token_checks = TRUE)

This feature is desirable in certain contexts, like testing. For example, googleCloudStorageR could be configured to connect to a GCS emulator that doesn't require or implement any authorization. In that situation googleCloudStorageR could use this new option to opt out of unnecessary checks in googleAuthR.


This PR is part of the effort to address https://github.com/cloudyr/googleCloudStorageR/issues/176

MarkEdmondson1234 commented 1 year ago

Thanks. The mock API checks could probably be removed too to use the option instead, but I leave that for gargle to develop.