Created
January 12, 2023 17:28
-
-
Save fleischr/6aecd5ace9a4d2f772c044d7d6046ad7 to your computer and use it in GitHub Desktop.
Generate a PRVD refresh token
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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