Skip to content

Instantly share code, notes, and snippets.

@fleischr
Created January 12, 2023 17:28
Show Gist options
  • Save fleischr/6aecd5ace9a4d2f772c044d7d6046ad7 to your computer and use it in GitHub Desktop.
Save fleischr/6aecd5ace9a4d2f772c044d7d6046ad7 to your computer and use it in GitHub Desktop.
Generate a PRVD refresh token
#Enter the following commands in command line after creating a workflow in Shuttle
#More info on https://docs.provide.services/api/quickstart/cli-quickstart
#Authenticate using credentials you created in Shuttle
prvd authenticate
#Find the organization ID you created in Shuttle
prvd organizations list
#Generate a refresh token to a file
prvd api_tokens init --organization YOUR_ORGID_HERE --offline-access > myrefreshtoken.txt
#Copy the refresh token in the file. Set as value in bearer auth to Ident enpoint api/v1/authenticate
#Use resulting access_token in authentication to all other PRVD services
#FYI Refresh token will expire every 30 days
@fleischr
Copy link
Author

Tip - In the PRVD Postman collection, go to the Ident Authentication using refresh token as bearer token.
Use the resulting access_token to call PRVD web services, including PRVD baseline protocol messaging.

Find the postman collection here: https://github.com/provideplatform/provide-postman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment