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

Method SignIdentityAssertion

internal/agentauth/tokens.go:66–68  ·  view source on GitHub ↗

SignIdentityAssertion mints a long-lived identity_assertion for sub (the agent email), bound to issuer (= the AS public URL, used as both iss and aud). Returns the token and its absolute expiry.

(sub, scope string, assertionVersion int, issuer string)

Source from the content-addressed store, hash-verified

64// agent email), bound to issuer (= the AS public URL, used as both iss and
65// aud). Returns the token and its absolute expiry.
66func (s *Signer) SignIdentityAssertion(sub, scope string, assertionVersion int, issuer string) (string, time.Time, error) {
67 return s.signTyped(TypIdentityAssertion, sub, scope, assertionVersion, issuer, IdentityAssertionTTL)
68}
69
70// SignAccessToken mints a short-lived access_token for sub. Same issuer/aud
71// binding as the assertion. Returns the token and its absolute expiry.

Callers 3

TestVerify_TypeConfusionFunction · 0.80
handleAgentIdentityMethod · 0.80

Calls 1

signTypedMethod · 0.95

Tested by 2

TestVerify_TypeConfusionFunction · 0.64