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)
| 435 | // silently absent when not wired"). Operators who don't want OAuth |
| 436 | // enabled simply don't call this. |
| 437 | func (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 |
no outgoing calls