You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DOCS/features/access-authentication-and-session-controls/user-profile-and-tokens.mdx
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ The **Profile Overview** card presents user details in a condensed grid so they
23
23
24
24
The **API Tokens** card is for user-bound automation tokens. API tokens authenticate as your user account and inherit your current Ghostwriter permissions. Use API tokens when automation should do exactly what your user account can do.
25
25
26
-
API tokens are opaque `gwat_` credentials. They are not JWTs, and Ghostwriter stores only a hash of the token secret. The full token value is shown once when you create a token or save an expiry update.
26
+
API tokens are opaque `gwat_` credentials. They are not JWTs, and Ghostwriter stores only a hash of the token secret. The full token value is shown once when you create or regenerate a token.
27
27
28
28
Ghostwriter records an API token's last-used timestamp when the token authenticates. Updates are throttled to avoid writing on every request, so a recently active token may show the latest tracked interval instead of the exact most recent request time.
29
29
@@ -34,11 +34,19 @@ The API token card lets you:
34
34
* create a new API token with an expiration date
35
35
* review existing tokens
36
36
* view token details, including current project access for the token's user
37
-
* edit a token's expiration date and receive a replacement token
37
+
* edit a token's expiration date
38
+
* regenerate a token without changing its expiration date
38
39
* revoke tokens you no longer need
39
40
* hide expired tokens from the table
40
41
41
-
Tokens expiring within seven days use the warning color. Expired tokens use the expired color. The **Hide Expired** preference is saved in your browser's local storage so the same browser remembers your choice.
42
+
Tokens expiring within seven days use the warning color. Expired tokens use the expired color. The **Hide Expired** preference is saved in your browser's local
43
+
storage so the same browser remembers your choice.
44
+
45
+
Token expiration changes follow the server's General Settings. New tokens and expiry edits cannot exceed the configured maximum lifetime, which defaults to
46
+
365 days from the time of the change. Existing tokens that already exceed a newly lowered maximum are not changed automatically, but they cannot be extended
47
+
beyond the active policy. Shortening a token's expiry updates the existing credential in place. Extending a token's expiry either updates the existing credential
48
+
or rotates it immediately, depending on whether administrators require rotation for expiry extensions. Expired tokens cannot be regenerated until their expiry is
49
+
extended. If administrators do not require rotation for expiry extensions, regenerate the token after extending expiry to rotate the credential.
42
50
43
51
## Service Tokens
44
52
@@ -68,11 +76,12 @@ The service token card lets you:
68
76
* choose or create a reusable service principal
69
77
* select the token scope
70
78
* review existing service tokens
79
+
* regenerate a service token without changing its expiration date or scope
71
80
* revoke tokens you no longer need
72
81
* hide expired tokens from the table
73
82
74
83
Service-token expiration styling and the **Hide Expired** browser preference work the same way as API tokens.
75
84
76
85
<Warning>
77
-
Store newly created API tokens and service tokens immediately. Ghostwriter only shows the token value once.
86
+
Store newly created and regenerated API tokens and service tokens immediately. Ghostwriter only shows the token value once. Revocation and regeneration invalidate the previous credential immediately.
0 commit comments