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

Method SetOAuthProvider

internal/agent/api.go:437–437  ·  view source on GitHub ↗

SetOAuthProvider wires in the fosite-backed OAuth provider. When nil, /oauth2/* endpoints return 404 (matches the SetApprovalSigner / SetNotifier pattern of "optional capability, silently absent when not wired"). Operators who don't want OAuth enabled simply don't call this.

(p fosite.OAuth2Provider)

Source from the content-addressed store, hash-verified

435// silently absent when not wired"). Operators who don't want OAuth
436// enabled simply don't call this.
437func (a *API) SetOAuthProvider(p fosite.OAuth2Provider) { a.oauthProvider = p }
438
439// SetSigner wires the RS256 agent-token signer (Slice 5b). Optional — when nil
440// or disabled, /.well-known/jwks.json serves an empty key set and the

Callers 6

bareDiscoveryServerFunction · 0.95
newConsentFixtureFunction · 0.95
newDCRServerFunction · 0.95
setupOAuthAPIFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by 5

bareDiscoveryServerFunction · 0.76
newConsentFixtureFunction · 0.76
newDCRServerFunction · 0.76
setupOAuthAPIFunction · 0.76