Understand when OpnForm uses JWT, Sanctum personal access tokens, and Passport OAuth 2.1.
OpnForm intentionally uses three authentication mechanisms. They serve different clients and should not be substituted for one another without a dedicated migration.
Mechanism
Client
Purpose
JWT
First-party Nuxt application
Existing browser login and authenticated application requests
Sanctum personal access tokens
API users and integrations
Long-lived tokens created by a user, constrained by token abilities and the auth.multi route policy
Passport OAuth 2.1
Third-party delegated clients
Authorization Code with PKCE, consent, scoped access, and refresh tokens
Do not migrate first-party login to Passport. Passport is for delegated access by external clients. A future first-party authentication migration should evaluate Sanctum’s stateful cookie authentication as a separate project.
Delegated OAuth flow
The OAuthServiceProvider owns Passport configuration, routes, token lifetimes, consent rendering, and scope descriptions. MCP adds its own dynamic client registration policy, login bridge, metadata, and mcp:use scope requirement on top of that generic layer.
The client dynamically registers an allowed redirect URI for the MCP integration.
The authorization request must use Authorization Code with PKCE and the S256 challenge method.
OpnForm authenticates the account through the existing first-party login flow.
The generic consent screen displays the callback destination and every requested scope description.
Passport issues a scoped access token and refresh token.
The MCP endpoint accepts the token only when it includes mcp:use and the account is not blocked.
Guest MCP requests remain available without a bearer token. A bearer token that is invalid or missing the required scope is rejected rather than treated as a guest request.
Configuration
# Optional override. The default follows Cloud or self-hosted MCP availability.OAUTH_ENABLED=true# Seven days, in minutes.OAUTH_ACCESS_TOKEN_TTL=10080# Refresh tokens remain valid for 30 days.OAUTH_REFRESH_TOKEN_TTL_DAYS=30
These values are independent of JWT_TTL. Changing a delegated OAuth token lifetime must not change first-party sessions.
Adding another delegated client
When you add another OAuth consumer:
Add a narrowly defined scope and a user-readable description to config/oauth.php.
Keep redirect URI validation specific to the client registration endpoint.
Require PKCE S256 for public clients.
Enforce the scope at the protected resource boundary.
Add consent, token, insufficient-scope, account-blocking, and revocation tests.
Do not add product-specific permissions directly to the generic OAuth consent template. The template renders the scopes requested and validated by Passport.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OpnForm Technical Docs","colors":{"primary":"#3b82f6","light":"#60a5fa","dark":"#2563eb"},"logo":{"light":"https://mintcdn.com/opnform/OUqYLvFvGemD8lSt/logo.svg?fit=max\u0026auto=format\u0026n=OUqYLvFvGemD8lSt\u0026q=85\u0026s=60c8619bcad52d227a058cc4a5f06955","dark":"https://mintcdn.com/opnform/OUqYLvFvGemD8lSt/logo.svg?fit=max\u0026auto=format\u0026n=OUqYLvFvGemD8lSt\u0026q=85\u0026s=60c8619bcad52d227a058cc4a5f06955"},"favicon":"https://mintcdn.com/opnform/OUqYLvFvGemD8lSt/logo.svg?fit=max\u0026auto=format\u0026n=OUqYLvFvGemD8lSt\u0026q=85\u0026s=60c8619bcad52d227a058cc4a5f06955","navbar":{"links":[{"href":"https://opnform.com?utm_source=docs\u0026utm_medium=topbar\u0026utm_campaign=technical_docs","label":"OpnForm"},{"href":"https://github.com/OpnForm/OpnForm","label":"GitHub"}],"primary":{"type":"button","label":"Dashboard","href":"https://opnform.com"}},"footer":{"socials":{"twitter":"https://twitter.com/opnform","github":"https://github.com/OpnForm/OpnForm"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Product Documentation","icon":"book-open-cover","href":"https://help.opnform.com"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/YTSjU2a9TS"},{"anchor":"Changelog","icon":"sparkles","href":"https://feedback.opnform.com/changelog"},{"anchor":"Roadmap","icon":"road","href":"https://feedback.opnform.com/roadmap"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"opnform","hasAudioNarration":false,"actualSubdomain":"opnform","customDomains":["docs.opnform.com"],"gitSource":{"type":"github","owner":"opnform","repo":"opnform","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"edits":true,"thumbs":true},"entitlements":{},"buildId":"6afb25050c14fe39876740d3","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"API Reference","count":38},{"language":"default","tag":"Documentation","count":29},{"language":"default","tag":"Contributing","count":11},{"language":"default","tag":"Configuration","count":9},{"language":"default","tag":"Integrations","count":8},{"language":"default","tag":"Workspace Users","count":8},{"language":"default","tag":"Self-hosted Enterprise","count":7},{"language":"default","tag":"Submissions","count":6},{"language":"default","tag":"Deployment","count":6},{"language":"default","tag":"Forms","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"contributing/authentication-architecture","slug":"/contributing/authentication-architecture","pageMetadata":{"title":"Authentication architecture","description":"Understand when OpnForm uses JWT, Sanctum personal access tokens, and Passport OAuth 2.1.","href":"/contributing/authentication-architecture"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Understand when OpnForm uses JWT, Sanctum personal access tokens, and Passport OAuth 2.1.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`OpnForm intentionally uses three authentication mechanisms. They serve different clients and should not be substituted for one another without a dedicated migration.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Mechanism`}),_jsx(_components.th,{children:`Client`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`JWT`}),_jsx(_components.td,{children:`First-party Nuxt application`}),_jsx(_components.td,{children:`Existing browser login and authenticated application requests`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Sanctum personal access tokens`}),_jsx(_components.td,{children:`API users and integrations`}),_jsxs(_components.td,{children:[`Long-lived tokens created by a user, constrained by token abilities and the `,_jsx(_components.code,{children:`auth.multi`}),` route policy`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Passport OAuth 2.1`}),_jsx(_components.td,{children:`Third-party delegated clients`}),_jsx(_components.td,{children:`Authorization Code with PKCE, consent, scoped access, and refresh tokens`})]})]})]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Do not migrate first-party login to Passport. Passport is for delegated access by external clients. A future first-party authentication migration should evaluate Sanctum’s stateful cookie authentication as a separate project.`})}),`\n`,_jsx(Heading,{level:`2`,id:`delegated-oauth-flow`,children:`Delegated OAuth flow`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`OAuthServiceProvider`}),` owns Passport configuration, routes, token lifetimes, consent rendering, and scope descriptions. MCP adds its own dynamic client registration policy, login bridge, metadata, and `,_jsx(_components.code,{children:`mcp:use`}),` scope requirement on top of that generic layer.`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`The client dynamically registers an allowed redirect URI for the MCP integration.`}),`\n`,_jsxs(_components.li,{children:[`The authorization request must use Authorization Code with PKCE and the `,_jsx(_components.code,{children:`S256`}),` challenge method.`]}),`\n`,_jsx(_components.li,{children:`OpnForm authenticates the account through the existing first-party login flow.`}),`\n`,_jsx(_components.li,{children:`The generic consent screen displays the callback destination and every requested scope description.`}),`\n`,_jsx(_components.li,{children:`Passport issues a scoped access token and refresh token.`}),`\n`,_jsxs(_components.li,{children:[`The MCP endpoint accepts the token only when it includes `,_jsx(_components.code,{children:`mcp:use`}),` and the account is not blocked.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Guest MCP requests remain available without a bearer token. A bearer token that is invalid or missing the required scope is rejected rather than treated as a guest request.`}),`\n`,_jsx(Heading,{level:`2`,id:`configuration`,children:`Configuration`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`dotenv`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`dotenv`,children:_jsxs(_components.code,{language:`dotenv`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Optional override. The default follows Cloud or self-hosted MCP availability.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`OAUTH_ENABLED`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Seven days, in minutes.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`OAUTH_ACCESS_TOKEN_TTL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`10080`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Refresh tokens remain valid for 30 days.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`OAUTH_REFRESH_TOKEN_TTL_DAYS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`30`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`These values are independent of `,_jsx(_components.code,{children:`JWT_TTL`}),`. Changing a delegated OAuth token lifetime must not change first-party sessions.`]}),`\n`,_jsx(Heading,{level:`2`,id:`adding-another-delegated-client`,children:`Adding another delegated client`}),`\n`,_jsx(_components.p,{children:`When you add another OAuth consumer:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Add a narrowly defined scope and a user-readable description to `,_jsx(_components.code,{children:`config/oauth.php`}),`.`]}),`\n`,_jsx(_components.li,{children:`Keep redirect URI validation specific to the client registration endpoint.`}),`\n`,_jsxs(_components.li,{children:[`Require PKCE `,_jsx(_components.code,{children:`S256`}),` for public clients.`]}),`\n`,_jsx(_components.li,{children:`Enforce the scope at the protected resource boundary.`}),`\n`,_jsx(_components.li,{children:`Add consent, token, insufficient-scope, account-blocking, and revocation tests.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Do not add product-specific permissions directly to the generic OAuth consent template. The template renders the scopes requested and validated by Passport.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Authentication architecture","description":"Understand when OpnForm uses JWT, Sanctum personal access tokens, and Passport OAuth 2.1.","href":"/contributing/authentication-architecture"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Delegated OAuth flow","slug":"delegated-oauth-flow","depth":2,"children":[]},{"title":"Configuration","slug":"configuration","depth":2,"children":[]},{"title":"Adding another delegated client","slug":"adding-another-delegated-client","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"opnform","siteName":"OpnForm Technical Docs","title":"Authentication architecture - OpnForm Technical Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-20T08:42:10.337Z","originalFileLocation":"contributing/authentication-architecture.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Understand when OpnForm uses JWT, Sanctum personal access tokens, and Passport OAuth 2.1.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OpnForm Technical Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/opnform/j_5DxxKW6ps4uqTV/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/opnform/j_5DxxKW6ps4uqTV/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/opnform/j_5DxxKW6ps4uqTV/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/opnform/j_5DxxKW6ps4uqTV/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/opnform/j_5DxxKW6ps4uqTV/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/opnform/j_5DxxKW6ps4uqTV/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/opnform/j_5DxxKW6ps4uqTV/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/opnform/j_5DxxKW6ps4uqTV/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/opnform/j_5DxxKW6ps4uqTV/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Authentication architecture - OpnForm Technical Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Understand when OpnForm uses JWT, Sanctum personal access tokens, and Passport OAuth 2.1.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OpnForm Technical Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.opnform.com/contributing/authentication-architecture\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://opnform.mintlify.site/_mintlify/api/og/v2?division=Contributing\u0026amp;title=Authentication+architecture\u0026amp;description=Understand+when+OpnForm+uses+JWT%2C+Sanctum+personal+access+tokens%2C+and+Passport+OAuth+2.1.\u0026amp;theme=11ffd3dc3c94733c4a455d26\u0026amp;signature=949b3d7646629b2bdde396cc444d0db9e4e6e759fb23b345216f4b3fb8b44245\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Authentication architecture - OpnForm Technical Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Understand when OpnForm uses JWT, Sanctum personal access tokens, and Passport OAuth 2.1.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://opnform.mintlify.site/_mintlify/api/og/v2?division=Contributing\u0026amp;title=Authentication+architecture\u0026amp;description=Understand+when+OpnForm+uses+JWT%2C+Sanctum+personal+access+tokens%2C+and+Passport+OAuth+2.1.\u0026amp;theme=11ffd3dc3c94733c4a455d26\u0026amp;signature=949b3d7646629b2bdde396cc444d0db9e4e6e759fb23b345216f4b3fb8b44245\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/opnform/j_5DxxKW6ps4uqTV/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OpnForm Technical Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3b82f6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.opnform.com/contributing/authentication-architecture\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/contributing/authentication-architecture.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.opnform.com/#organization\",\"name\":\"OpnForm Technical Docs\",\"url\":\"https://docs.opnform.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/opnform/OUqYLvFvGemD8lSt/logo.svg?fit=max\u0026auto=format\u0026n=OUqYLvFvGemD8lSt\u0026q=85\u0026s=60c8619bcad52d227a058cc4a5f06955\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.opnform.com#website\",\"name\":\"OpnForm Technical Docs\",\"url\":\"https://docs.opnform.com\",\"publisher\":{\"@id\":\"https://docs.opnform.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.opnform.com/contributing/authentication-architecture#webpage\",\"url\":\"https://docs.opnform.com/contributing/authentication-architecture\",\"name\":\"Authentication architecture\",\"description\":\"Understand when OpnForm uses JWT, Sanctum personal access tokens, and Passport OAuth 2.1.\",\"dateModified\":\"2026-08-20T08:42:10.337Z\",\"isPartOf\":{\"@id\":\"https://docs.opnform.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.opnform.com/contributing/authentication-architecture#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.opnform.com/contributing/authentication-architecture#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Contributing\",\"item\":\"https://docs.opnform.com/contributing/getting-started\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication architecture\",\"item\":\"https://docs.opnform.com/contributing/authentication-architecture\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.opnform.com/contributing/authentication-architecture#article\",\"headline\":\"Authentication architecture\",\"name\":\"Authentication architecture\",\"description\":\"Understand when OpnForm uses JWT, Sanctum personal access tokens, and Passport OAuth 2.1.\",\"url\":\"https://docs.opnform.com/contributing/authentication-architecture\",\"mainEntityOfPage\":{\"@id\":\"https://docs.opnform.com/contributing/authentication-architecture#webpage\"},\"dateModified\":\"2026-08-20T08:42:10.337Z\",\"publisher\":{\"@id\":\"https://docs.opnform.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.opnform.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OpnForm Technical Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"OpnForm Technical Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/contributing/authentication-architecture.md","siteName":"OpnForm Technical Docs","nav":{"global":{"anchors":[{"anchor":"Product Documentation","icon":"book-open-cover","href":"https://help.opnform.com"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/YTSjU2a9TS"},{"anchor":"Changelog","icon":"sparkles","href":"https://feedback.opnform.com/changelog"},{"anchor":"Roadmap","icon":"road","href":"https://feedback.opnform.com/roadmap"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Contributing","groups":[{"group":"Contributing","pages":[{"title":"Getting Started","description":"Learn how to contribute to OpnForm","href":"/contributing/getting-started"},{"title":"Authentication architecture","href":"/contributing/authentication-architecture"},{"title":"Creating a New Form Block","description":"Learn how to create a new form block for OpnForm","href":"/contributing/new-form-block"},{"title":"Adding a New OAuth Integration","href":"/contributing/new-integration"}]},{"group":"Front-end","pages":[{"title":"Data Fetching","href":"/front-end/data-fetching"},{"title":"Forms \u0026 Validation","href":"/front-end/forms"},{"title":"JavaScript SDK","href":"/front-end/javascript-sdk"}]}]}]},"basePath":"","title":"Authentication architecture - OpnForm Technical Docs","deploymentId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","buildId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","dynamics":[],"chunks":[]}