Personal Access Tokens
Personal Access Token (PAT) are a convenient way to access Cells APIs without going through the standard OAuth authentication procedure. They can be used in replacement to the Access Token generated by OAuth and passed via the Authorization: Bearer
header. For APIs based on Basic Authentication like WebDAV or SFTP, they can be used as a replacement to the user password (use Username/PersonalToken combination).
PAT can be generated by administrators for a given user with either a fixed expiration date, or an "auto-refresh" sliding window to refresh expiration time at each usage (see below).
[Ent] PAT Management in People administration panel¶
In Cells Enterprise, PATs can be management directly via the users' edition panel. Browse to Cells Console >> People >> (edit a user) >> Personal Access Tokens
.
You can view the status or/and remove a personal access token from this interface.
To create a new token, hit the + button and start creating a personal access token.
Give a friendly name to this token. For Expiration Model, select one of the 2 modes. - Hard Limit: the token will be expired after the set time. - Auto Refresh: the token will be renewed if used before the set time.
[Home] Generating PAT with the command line¶
Available on Cells Home (and Cells Ent as well), you can generate a personal access token by using the ./cells admin user token
command.
Below is the command usage description, you can find the "--expire" and "--auto" flags corresponding to the Hard Limit and Auto Refresh expiration models described above.