Appearance
Personal access tokens
A personal access token lets a tool such as Maven or Gradle use a CodeSoh product as you. The token is a password for command-line tools, and it acts with your account.
A token starts with cs_pat_. It's shown once, right after it's created, and only a hash of it is stored, so it can't be shown again.
Create a token
To create a token, follow these steps:
- Go to Personal access tokens.
- Click Create token.
- In the Name field, enter a name that tells you where the token is used, such as
LaptoporCI. - In the Product list, select the product that the token is for.
- In the Expires list, select 30 days, 90 days, 365 days, or No expiry.
- Click Create token.
The token appears once, under Copy your token now. Copy it into the place that your tool reads it from, and then click Done.
What a token can reach
A token is limited in three ways:
- It works only with the product that you chose for it.
- It stops working when it expires or when you revoke it.
- In CodeSoh Artifex, a token reaches only the repositories that it was granted, and never more than you can reach yourself. For more information, see Tokens in Artifex.
Use a token as the password in your tool's credentials. For Maven and Gradle examples, see Deploy artifacts.
See and revoke your tokens
The Personal access tokens page lists each token with its name, its product, when it was created, when it was last used, and when it expires. The token itself isn't listed.
To revoke a token, follow these steps:
- Go to Personal access tokens.
- In the row of the token, click Revoke.
- Click Revoke to confirm.
A revoked token stops working right away, and the tools that use it start failing to authenticate. Create a new token and update those tools.
Creating and revoking tokens appears in your activity.