# PetscGlobusAuthorize
Get an access token allowing PETSc applications to make Globus file transfer requests 
## Synopsis
```
PetscErrorCode PetscGlobusAuthorize(MPI_Comm comm, char access_token[], size_t tokensize)
```
Not collective, only the first process in `MPI_Comm` does anything


## Input Parameters

- ***comm -*** the MPI communicator
- ***tokensize -*** size of the token array



## Output Parameters

- ***access_token -*** can be used with `PetscGlobusUpLoad()` for 30 days



## Notes
This call requires stdout and stdin access from process 0 on the MPI communicator

You can run src/sys/webclient/tutorials/globusobtainaccesstoken to get an access token




## See Also
 `PetscGoogleDriveRefresh()`, `PetscGoogleDriveUpload()`, `PetscURLShorten()`, `PetscGlobusUpload()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/webclient/globus.c.html#PetscGlobusAuthorize">src/sys/webclient/globus.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/webclient/globus.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
