Set Up Token-Based Authentication
You can create temporary OAuth access tokens to enable access to VB Studio project operations, including Git, Maven, and NPM actions, from your VB Studio account preferences.
- Copy a token immediately after you generate it and paste it somewhere that you can access it later. This is the only opportunity you'll have to access the token.
- An access token can't be edited once it's been created. If you want to change the permissions for a token, you'll need to delete it and then create a new one.
- If the permissions for a user are changed at the project level, this can affect the token-based authentication.
- If a per-user limit on the number of personal access tokens has been set at the organization level, this can affect how many new tokens you can create and make it necessary for you to perform some maintenance by removing expired or no-longer used tokens before you can create new tokens.
Note:
If you're using curl to work with REST APIs and federated users in a multi-stripe Oracle Cloud Applications environment, one approach is to authenticate with a bearer token.
-H "Authorization: Bearer {token}"
curl -X POST https://[REST-endpoint]
-H "Authorization: Bearer {token}" -d "[post data]"
Create a Personal Access Token
To create a VB Studio authentication token:
You can view the details for each token you've created by selecting the token from the list shown in the Personal Access Tokens tab and viewing the information in the Basic Details and Scopes tabs.
Delete a Token
From the Basic Details tab, you can press the Delete Token button to delete a Personal Access Token (PAT). This will remove any permissions granted by the token.
After a token has been deleted, applications or scripts that use that token will no longer have access to the VB Studio API.
Automatic Token Maintenance Performed by VB Studio
- The Basic Details tab for the selected
token displays an "Expires Soon" status label 5 days before the actual
expiration date. The actual expiration date is listed in the panel.
Description of the illustration token-expire-soon-warning-label.png
- The Basic Details tab for the selected token displays
an "Deletion scheduled" status label next to a token that hasn't been used
for 395 days.
Description of the illustration token-expiring-due-nonuse.png
- An email notification is sent to the user 5 days before the
user’s personal access token is set to expire.
Description of the illustration token-expiration-warning-email.png
Then, if an unused token isn't used in the allotted time, VB Studio revokes it.
- An email notification is sent to the user 395 days after its last use (5
days before it will be automatically removed due to 400 days of non-use).
Description of the illustration email-notification-token-delete-nonuse.png