agentAuthIssuer is the iss/aud bound into every minted token — the API base URL (apiURL, which defaults to publicURL), trailing slash trimmed so it's byte-stable with the discovery doc's issuer. It signs AND verifies, so a deployment that changes api_url re-keys its token audience: tokens minted und
()
| 36 | // deployment that changes api_url re-keys its token audience: tokens minted |
| 37 | // under the old issuer stop validating and clients must re-auth. |
| 38 | func (a *API) agentAuthIssuer() string { return strings.TrimRight(a.apiURL, "/") } |
| 39 | |
| 40 | // agentAuthReady reports whether the agent-identity surface is usable: a signing |
| 41 | // key AND a public URL (needed for iss/aud) must both be configured. |
no outgoing calls
no test coverage detected