import{_ as t,c as o,o as a,a6 as i}from"./chunks/framework.CHl2ywxc.js";const h=JSON.parse('{"title":"OAuth Delegation","description":"","frontmatter":{"title":"OAuth Delegation"},"headers":[],"relativePath":"guides/oauth-delegation.md","filePath":"guides/oauth-delegation.md","lastUpdated":1755281500000}'),l={name:"guides/oauth-delegation.md"};function d(r,e,n,s,u,c){return a(),o("div",null,e[0]||(e[0]=[i('<h1 id="oauth-delegation-guide" tabindex="-1">OAuth Delegation Guide <a class="header-anchor" href="#oauth-delegation-guide" aria-label="Permalink to "OAuth Delegation Guide""></a></h1><p>Enable per-server OAuth by delegating authorization flows.</p><ul><li>Configure <code>oauth_delegation.enabled: true</code> and optional <code>providers</code> map.</li><li>Implement callback base URL and provider-specific overrides.</li><li>Use <code>FlowController</code> with Express or Workers runtime to complete flows.</li></ul><p>Security</p><ul><li>Use state and PKCE to prevent CSRF and code interception.</li><li>Restrict allowed redirect URIs.</li></ul><p>See: <code>src/oauth/*</code> and <code>examples/oauth-delegation/</code>.</p>',6)]))}const _=t(l,[["render",d]]);export{h as __pageData,_ as default};