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

Has the client JSON changed format? #202

Closed MarkEdmondson1234 closed 3 years ago

MarkEdmondson1234 commented 3 years ago

Getting some reports that the client JSON you download no longer has "installed" field which would break new deployments. Would really suck.

The files should all start with {"installed":{...

aldomann commented 3 years ago

I've noticed that as well. Actually, Web Clients start with {"web":{..., which makes the googleCloudRunner::cr_setup_auth() process impossible, since validate_json() expects validated$installed$client_id to exist.

MarkEdmondson1234 commented 3 years ago

That should be ok, if you use web_json instead in gar_set_client()