PetscErrorCode PetscGoogleDriveAuthorize(MPI_Comm comm,char access_token[],char refresh_token[],size_t tokensize)Not collective, only the first process in MPI_Comm does anything
comm | - the MPI communicator | |
tokensize | - size of the token arrays |
access_token | - can be used with PetscGoogleDriveUpload() for this one session | |
refresh_token | - can be used for ever to obtain new access_tokens with PetscGoogleDriveRefresh(), guard this like a password it gives access to your Google Drive |
You can run src/sys/webclient/tutorials/googleobtainrefreshtoken to get a refresh token and then in the future pass it to PETSc programs with -google_refresh_token XXX