MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / agentAuthIssuer

Method agentAuthIssuer

internal/agent/agent_identity.go:38–38  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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.
38func (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.

Callers 3

handleAgentIdentityMethod · 0.95
handleJWTBearerGrantMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected