Claude: passage au login isolé + refresh (scope user:profile requis par /usage)
This commit is contained in:
@@ -48,7 +48,13 @@ class Config:
|
||||
height: int = field(default_factory=lambda: int(_get("MONITORINK_HEIGHT", "1680")))
|
||||
|
||||
# --- Claude ---
|
||||
claude_token: str = field(default_factory=lambda: _get("MONITORINK_CLAUDE_TOKEN"))
|
||||
# Chemin du fichier .credentials.json d'un login Claude ISOLÉ dédié à Monitorink
|
||||
# (CLAUDE_CONFIG_DIR séparé). Le backend y lit/écrit (refresh) sans toucher le
|
||||
# ~/.claude partagé. L'endpoint /usage exige le scope user:profile -> login complet
|
||||
# requis (le token `claude setup-token` ne suffit pas, scope insuffisant).
|
||||
claude_creds_path: str = field(
|
||||
default_factory=lambda: _get("MONITORINK_CLAUDE_CREDS", "/creds/.credentials.json")
|
||||
)
|
||||
claude_ua: str = field(
|
||||
default_factory=lambda: _get("MONITORINK_CLAUDE_UA", "claude-code/2.1.172")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user