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
docs(readme): sync documentation with current codebase
- Update Go version prerequisite from 1.24+ to 1.25+
- Add missing -token-store flag and TOKEN_STORE env var
- Document multi-backend token storage (auto, file, keyring)
- Fix build command to use Makefile output path
- Add OS keyring entry to security notes table
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|`-token-store`|`TOKEN_STORE`|`auto`| Storage backend: `auto`, `file`, or `keyring`|
155
159
156
160
### Examples
157
161
@@ -211,7 +215,7 @@ PKCE (Proof Key for Code Exchange) is used for all clients — including confide
211
215
On every run the CLI follows this decision tree:
212
216
213
217
```
214
-
Load token from disk
218
+
Load token from store
215
219
│
216
220
├─ Not found ──────────────► Full Authorization Code Flow
217
221
│
@@ -224,15 +228,23 @@ Load token from disk
224
228
└─ Refresh fails ──► Full Authorization Code Flow
225
229
```
226
230
227
-
-**Reuse**: Valid tokens are loaded from disk and used immediately.
231
+
-**Reuse**: Valid tokens are loaded from the configured store and used immediately.
228
232
-**Refresh**: Expired access tokens are refreshed silently using the stored refresh token.
229
233
-**Re-auth**: If the refresh token is also expired or invalid, the full Authorization Code Flow restarts.
230
234
231
235
---
232
236
233
237
## Token Storage
234
238
235
-
Tokens are saved to `.authgate-tokens.json` (configurable). The file supports multiple client IDs so you can authenticate against several clients without conflicts:
239
+
The CLI supports multiple storage backends, configured via `-token-store` or `TOKEN_STORE`:
|`auto`| Use OS keyring if available, fall back to file (default) |
244
+
|`file`| JSON file at the path specified by `-token-file`|
245
+
|`keyring`| OS keyring (macOS Keychain, GNOME Keyring, Windows Credential Manager) |
246
+
247
+
When using file-based storage, tokens are saved to `.authgate-tokens.json` (configurable). The file supports multiple client IDs so you can authenticate against several clients without conflicts:
236
248
237
249
```json
238
250
{
@@ -263,6 +275,7 @@ The file is written with `0600` permissions and uses atomic rename to prevent co
263
275
| Token in transit | TLS 1.2+ enforced for all HTTPS connections |
0 commit comments