127.0.0.1:7998). The CLI and the injection proxy act as thin clients that communicate with this daemon.
Concept and motivation
Authentication flows hold state. They involve asynchronous steps like browser redirects and callbacks. If Authsome were a short-lived CLI tool, these flows would break:- OAuth callbacks: OAuth needs a listening port for the provider’s redirect. A CLI exits before you finish logging in.
- Session state: Multi-step operations and token refresh logic need a place to live.
- Secure injection: The proxy needs an isolated component to fetch fresh tokens without exposing the Vault decryption keys to the proxy process itself.