SetOAuthStorage wires in the OAuth storage handle separately from the provider. The consent handler needs Pool() to begin a pgx tx that spans the agent-create (identity pkg) and the auth-code insert (fosite → oauth pkg). Provider-only callers (e.g. /token) don't need it, but it's required for /conse
(s *oauth.Storage)
| 448 | // it, but it's required for /consent to work; setting one without the |
| 449 | // other is a misconfiguration the consent handler surfaces as a 503. |
| 450 | func (a *API) SetOAuthStorage(s *oauth.Storage) { a.oauthStorage = s } |
| 451 | |
| 452 | // SetIdempotencyStore enables Idempotency-Key processing on the |
| 453 | // outbound /send and /reply endpoints. When nil (the default) the |
no outgoing calls