Using JWT tokens to secure multi-tenant applications.
As a SaaS or consumer app developer, securing your multi-tenant data application is one of your main tasks. Propel offers a simple, yet powerful, solution using Access Policies and JWT tokens.
Key concepts
Access Policies: Rules that determine which data each tenant can access.
JWT Tokens: Secure tokens that carry tenant-specific information.
Dynamic row-level filtering: Allows one policy to serve multiple tenants.
Here’s how to implement multi-tenant access control for your app:
Implementing multi-tenant security
1
Create a single, dynamic access policy
Instead of creating a separate policy for each tenant, define one policy with dynamic filtering:
Console
API
Terraform
Creating an Access Policy for multi-tenant access control
mutation { createDataPoolAccessPolicy(input: { uniqueName: "My multi-tenant Access Policy", description: "Multi-tenant policy with dynamic filtering", dataPool: "DPO00000000000000000000000000", columns: ["*"], filterSql: "tenant_id = ${{ tenant_id }}" }) { dataPoolAccessPolicy { dataPool { id } id uniqueName } }}
When querying Propel’s API, include this token in the Authorization header. Propel will automatically apply the correct tenant filter.
Benefits
Scalability: One policy serves all tenants.
Security: Each tenant is strictly limited to their own data.
Flexibility: Easily adapt to changes in your data model.
Multiple levels of tenancy: This models supports multiple levels of tenancy (e.g. Organizations, customers, workspaces and users).
Important Notes
Always create tokens server-side for security.
The resulting token is safe to use in frontend code.
You can include multiple tenant-specific values in the token if needed.
By following this approach, you can efficiently secure your multi-tenant application, ensuring that each customer only accesses their own data while minimizing the overhead of policy management.
Was this page helpful?
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Propel docs","colors":{"primary":"#53389E","light":"#B692F6","dark":"#42307D"},"favicon":"/logo/favicon.svg","styling":{"eyebrows":null,"codeblocks":"system"},"logo":{"light":"https://mintcdn.com/propeldocs/sNpmg5Sbvcqytj17/logo/light.svg?fit=max\u0026auto=format\u0026n=sNpmg5Sbvcqytj17\u0026q=85\u0026s=9d44dbaa0d94a0b0efe5b94548583b52","dark":"https://mintcdn.com/propeldocs/sNpmg5Sbvcqytj17/logo/dark.svg?fit=max\u0026auto=format\u0026n=sNpmg5Sbvcqytj17\u0026q=85\u0026s=018cb109a52097ee645367f1cabdbac1","href":"https://www.propeldata.com/docs"},"background":{"decoration":"windows"},"navbar":{"links":[{"label":"Sign up","href":"https://console.propeldata.com/get-started"}],"primary":{"type":"button","label":"Console","href":"https://console.propeldata.com"}},"footer":{"socials":{"website":"https://www.propeldata.com","x":"https://x.com/PropelDataCloud","github":"https://github.com/propeldata","linkedin":"https://www.linkedin.com/company/propeldata"}},"integrations":{"gtm":{"tagId":"GTM-KWHDSH7X"},"segment":{"key":"JofuhN1DoSM6E42ZVPcVUN3jqCmyWVP1"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"propeldocs","hasAudioNarration":false,"actualSubdomain":"propeldocs","customDomains":["www.propeldata.com"],"gitSource":{"type":"github","owner":"propeldata","repo":"docsv2","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae921c25a187fc783f53d53:success","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"Embeddable UI","count":72},{"language":"default","tag":"Serverless Cloud","count":65},{"language":"default","tag":"Ingestion","count":44},{"language":"default","tag":"Query APIs","count":40},{"language":"default","tag":"API Reference","count":18},{"language":"default","tag":"Get Started","count":17},{"language":"default","tag":"Guides","count":16},{"language":"default","tag":"Changelog","count":9},{"language":"default","tag":"Manage","count":9},{"language":"default","tag":"Themes","count":9}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"docs/multi-tenant-jwt-tokens","slug":"/docs/multi-tenant-jwt-tokens","pageMetadata":{"title":"Multi-tenant JWT tokens","description":"Using JWT tokens to secure multi-tenant applications.","sidebarTitle":"Multi-tenant JWT tokens","icon":"building-shield","href":"/docs/multi-tenant-jwt-tokens"},"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: \"Using JWT tokens to secure multi-tenant applications.\"\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`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,OptimizedImage,Step,Steps,Tab,Tabs}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsx(`div`,{}),`\n`,_jsx(_components.p,{children:`As a SaaS or consumer app developer, securing your multi-tenant data application is one of your main tasks. Propel offers a simple, yet powerful, solution using Access Policies and JWT tokens.`}),`\n`,_jsx(Heading,{level:`2`,id:`key-concepts`,children:`Key concepts`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Access Policies`}),`: Rules that determine which data each tenant can access.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`JWT Tokens`}),`: Secure tokens that carry tenant-specific information.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Dynamic row-level filtering`}),`: Allows one policy to serve multiple tenants.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Here’s how to implement multi-tenant access control for your app:`}),`\n`,_jsx(Heading,{level:`2`,id:`implementing-multi-tenant-security`,children:`Implementing multi-tenant security`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Create a single, dynamic access policy`,children:[_jsx(_components.p,{children:`Instead of creating a separate policy for each tenant, define one policy with dynamic filtering:`}),_jsxs(Tabs,{children:[_jsx(Tab,{title:`Console`,id:`console`,children:_jsx(Frame,{caption:`Creating an Access Policy for multi-tenant access control`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/propeldocs/Dnye5EmtO6L5-zx0/images/docs/2024-08-multi-tenant-policy.png?fit=max\u0026auto=format\u0026n=Dnye5EmtO6L5-zx0\u0026q=85\u0026s=d5594b31ac359c94b9de9f6fdfceecb5`,alt:`Creating an Access Policy for multi-tenant access control`,\"data-og-width\":`853`,width:`853`,\"data-og-height\":`1245`,height:`1245`,\"data-path\":`images/docs/2024-08-multi-tenant-policy.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/propeldocs/Dnye5EmtO6L5-zx0/images/docs/2024-08-multi-tenant-policy.png?w=280\u0026fit=max\u0026auto=format\u0026n=Dnye5EmtO6L5-zx0\u0026q=85\u0026s=ca270029e3fd86257db3f1b0d74fb548 280w, https://mintcdn.com/propeldocs/Dnye5EmtO6L5-zx0/images/docs/2024-08-multi-tenant-policy.png?w=560\u0026fit=max\u0026auto=format\u0026n=Dnye5EmtO6L5-zx0\u0026q=85\u0026s=2c42703edb13583dc47eb96204da4b58 560w, https://mintcdn.com/propeldocs/Dnye5EmtO6L5-zx0/images/docs/2024-08-multi-tenant-policy.png?w=840\u0026fit=max\u0026auto=format\u0026n=Dnye5EmtO6L5-zx0\u0026q=85\u0026s=6d8b069694f2620ef992648f158afdfc 840w, https://mintcdn.com/propeldocs/Dnye5EmtO6L5-zx0/images/docs/2024-08-multi-tenant-policy.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Dnye5EmtO6L5-zx0\u0026q=85\u0026s=bea3bd8557987b91af1f9fde8980dd3f 1100w, https://mintcdn.com/propeldocs/Dnye5EmtO6L5-zx0/images/docs/2024-08-multi-tenant-policy.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Dnye5EmtO6L5-zx0\u0026q=85\u0026s=41bcec8d2d366b424f7970e120a63972 1650w, https://mintcdn.com/propeldocs/Dnye5EmtO6L5-zx0/images/docs/2024-08-multi-tenant-policy.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Dnye5EmtO6L5-zx0\u0026q=85\u0026s=dece91a982b29ef3daa4399c08f9febc 2500w`})})}),_jsx(Tab,{title:`API`,id:`api`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`graphql`,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:`graphql`,children:_jsxs(_components.code,{language:`graphql`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`mutation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` createDataPoolAccessPolicy`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` uniqueName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"My multi-tenant Access Policy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Multi-tenant policy with dynamic filtering\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` dataPool`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"DPO00000000000000000000000000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` columns`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`\"*\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` filterSql`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"tenant_id = ${{ tenant_id }}\"'})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }) {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` dataPoolAccessPolicy`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` dataPool`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` id`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` id`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` uniqueName`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),_jsx(Tab,{title:`Terraform`,id:`terraform`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`hcl`,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:`hcl`,children:_jsxs(_components.code,{language:`hcl`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`resource`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` \"propel_data_pool_access_policy\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` \"multi-tenant-policy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` unique_name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"My multi-tenant Access Policy\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` description`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Multi-tenant policy with dynamic filtering\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data_pool`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"DPO00000000000000000000000000\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` columns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"*\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` row`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` column`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tenant_id\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` operator`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"EQUALS\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` value`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`{ tenant_id }`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` applications`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"APP00000000000000000000000000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]}),_jsx(_components.p,{children:`—`}),_jsxs(_components.p,{children:[`This policy uses `,_jsx(_components.code,{children:\"${{ tenant_id }}\"}),` as a placeholder, which will be filled with the actual tenant ID at runtime.`]})]}),_jsxs(Step,{title:`Generate tenant-specific JWT tokens`,children:[_jsx(_components.p,{children:`When a user logs in, mint a JWT token that includes their tenant ID:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://auth.propeldata.com/oauth2/token`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` grant_type=client_credentials`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` client_id=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$YOUR_APP_ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` client_secret=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$YOUR_APP_SECRET`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'policy_values={\"tenant_id\":\"123\"}'`})]}),`\n`]})})})]}),_jsx(Step,{title:`Use the token for data queries`,children:_jsx(_components.p,{children:`When querying Propel’s API, include this token in the Authorization header. Propel will automatically apply the correct tenant filter.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`benefits`,children:`Benefits`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Scalability`}),`: One policy serves all tenants.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Security`}),`: Each tenant is strictly limited to their own data.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Flexibility`}),`: Easily adapt to changes in your data model.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Multiple levels of tenancy`}),`: This models supports multiple levels of tenancy (e.g. Organizations, customers, workspaces and users).`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`important-notes`,children:`Important Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Always create tokens server-side for security.`}),`\n`,_jsx(_components.li,{children:`The resulting token is safe to use in frontend code.`}),`\n`,_jsx(_components.li,{children:`You can include multiple tenant-specific values in the token if needed.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`By following this approach, you can efficiently secure your multi-tenant application, ensuring that each customer only accesses their own data while minimizing the overhead of policy management.`})]})}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":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Multi-tenant JWT tokens","description":"Using JWT tokens to secure multi-tenant applications.","sidebarTitle":"Multi-tenant JWT tokens","icon":"building-shield","href":"/docs/multi-tenant-jwt-tokens"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Key concepts","slug":"key-concepts","depth":2,"children":[]},{"title":"Implementing multi-tenant security","slug":"implementing-multi-tenant-security","depth":2,"children":[]},{"title":"Benefits","slug":"benefits","depth":2,"children":[]},{"title":"Important Notes","slug":"important-notes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/propeldocs/fdbfad1497ca4ff4/scripts/generate-query-api-snippets.js","/_mintlify/custom/propeldocs/8980ee81dee9a13b/scripts/generate-ui-kit-props-snippets.js","/_mintlify/custom/propeldocs/14bd85a0d423341a/scripts/consts.js","/_mintlify/custom/propeldocs/0cf47d21a6c8aab3/scripts/utils.js","/_mintlify/custom/propeldocs/40b44e6573c8c018/scripts/generate-management-api-pages.js","/_mintlify/custom/propeldocs/51bba4061f9f89d8/scripts/delete-heavy-docs.js","/_mintlify/custom/propeldocs/cdc5ec9e555dee6e/scripts/generate-docs.js","/_mintlify/custom/propeldocs/45c00fb3854a3468/scripts/patch-embed-snippets.js","/_mintlify/custom/propeldocs/9a2f4a8c729adeab/scripts/get-radix-type-as-json.js"],"subdomain":"propeldocs","siteName":"Propel docs","title":"Multi-tenant JWT tokens - Propel docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T03:51:15.792Z","originalFileLocation":"docs/multi-tenant-jwt-tokens.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=\"Using JWT tokens to secure multi-tenant applications.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Propel 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/propeldocs/6xpBSdoUNIH7T1a1/_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/propeldocs/6xpBSdoUNIH7T1a1/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/propeldocs/6xpBSdoUNIH7T1a1/_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/propeldocs/6xpBSdoUNIH7T1a1/_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/propeldocs/6xpBSdoUNIH7T1a1/_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/propeldocs/6xpBSdoUNIH7T1a1/_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/propeldocs/6xpBSdoUNIH7T1a1/_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/propeldocs/6xpBSdoUNIH7T1a1/_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/propeldocs/6xpBSdoUNIH7T1a1/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Multi-tenant JWT tokens - Propel docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Using JWT tokens to secure multi-tenant applications.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Propel docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.propeldata.com/docs/multi-tenant-jwt-tokens\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://propeldocs.mintlify.site/_mintlify/api/og/v2?division=Identity+%26+Access\u0026amp;title=Multi-tenant+JWT+tokens\u0026amp;description=Using+JWT+tokens+to+secure+multi-tenant+applications.\u0026amp;theme=f9dc867360e0a88fa037a043\u0026amp;signature=755a8c067783ea50a8a6a4495c84bb1e492527f591ab46839a3828d98fd9b46d\">\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=\"Multi-tenant JWT tokens - Propel docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Using JWT tokens to secure multi-tenant applications.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://propeldocs.mintlify.site/_mintlify/api/og/v2?division=Identity+%26+Access\u0026amp;title=Multi-tenant+JWT+tokens\u0026amp;description=Using+JWT+tokens+to+secure+multi-tenant+applications.\u0026amp;theme=f9dc867360e0a88fa037a043\u0026amp;signature=755a8c067783ea50a8a6a4495c84bb1e492527f591ab46839a3828d98fd9b46d\">\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/propeldocs/6xpBSdoUNIH7T1a1/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Propel docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#53389E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.propeldata.com/docs/multi-tenant-jwt-tokens\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/multi-tenant-jwt-tokens.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.propeldata.com/#organization\",\"name\":\"Propel docs\",\"url\":\"https://www.propeldata.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/propeldocs/sNpmg5Sbvcqytj17/logo/light.svg?fit=max\u0026auto=format\u0026n=sNpmg5Sbvcqytj17\u0026q=85\u0026s=9d44dbaa0d94a0b0efe5b94548583b52\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.propeldata.com#website\",\"name\":\"Propel docs\",\"url\":\"https://www.propeldata.com\",\"publisher\":{\"@id\":\"https://www.propeldata.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.propeldata.com/docs/multi-tenant-jwt-tokens#webpage\",\"url\":\"https://www.propeldata.com/docs/multi-tenant-jwt-tokens\",\"name\":\"Multi-tenant JWT tokens\",\"description\":\"Using JWT tokens to secure multi-tenant applications.\",\"dateModified\":\"2026-01-07T03:51:15.792Z\",\"isPartOf\":{\"@id\":\"https://www.propeldata.com#website\"},\"breadcrumb\":{\"@id\":\"https://www.propeldata.com/docs/multi-tenant-jwt-tokens#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.propeldata.com/docs/multi-tenant-jwt-tokens#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Identity \u0026 Access\",\"item\":\"https://www.propeldata.com/docs/applications\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Multi-tenant JWT tokens\",\"item\":\"https://www.propeldata.com/docs/multi-tenant-jwt-tokens\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.propeldata.com/docs/multi-tenant-jwt-tokens#article\",\"headline\":\"Multi-tenant JWT tokens\",\"name\":\"Multi-tenant JWT tokens\",\"description\":\"Using JWT tokens to secure multi-tenant applications.\",\"url\":\"https://www.propeldata.com/docs/multi-tenant-jwt-tokens\",\"mainEntityOfPage\":{\"@id\":\"https://www.propeldata.com/docs/multi-tenant-jwt-tokens#webpage\"},\"dateModified\":\"2026-01-07T03:51:15.792Z\",\"publisher\":{\"@id\":\"https://www.propeldata.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.propeldata.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Propel docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Propel docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/multi-tenant-jwt-tokens.md","siteName":"Propel docs","nav":{"global":null,"tabs":[{"tab":"Serverless Cloud","anchors":[{"anchor":"Serverless Cloud","icon":"house","groups":[{"group":"Get Started","pages":[{"title":"Propel documentation","icon":"house","sidebarTitle":"Overview","mode":"wide","href":"/docs/overview"},{"title":"What is ClickHouse®?","icon":"bolt-lightning","mode":"wide","href":"/docs/what-is-clickhouse"},{"title":"Why Propel?","icon":"lightbulb","mode":"wide","href":"/docs/why-propel"},{"title":"Architecture","icon":"cloud","mode":"wide","href":"/docs/architecture"},{"title":"Quickstart","icon":"rocket","mode":"wide","href":"/docs/quickstart"},{"title":"Connect \u0026 SDKs","icon":"plug","href":"/docs/connect"}]},{"group":"Manage","pages":[{"title":"Creating tables","sidebarTitle":"Creating tables","icon":"table","href":"/docs/creating-tables"},{"title":"Inserting data","sidebarTitle":"Inserting data","icon":"arrow-turn-down-right","href":"/docs/inserting-data"},{"title":"Updating data","sidebarTitle":"Updating data","icon":"pencil","href":"/docs/updating-data"},{"title":"Deleting data","sidebarTitle":"Deleting data","icon":"trash","href":"/docs/deleting-data"},{"title":"Changing schemas","sidebarTitle":"Changing schemas","icon":"swap","href":"/docs/changing-schemas"},{"title":"Materialized Views","icon":"table-cells-large","href":"/docs/materialized-views"},{"group":"Federation","icon":"network-wired","pages":[{"title":"Federation","sidebarTitle":"Overview","href":"/docs/federation/overview"},{"group":"ClickHouse®","icon":"bolt-lightning","pages":[{"title":"Federation to ClickHouse","sidebarTitle":"Overview","href":"/docs/federation/clickhouse/overview"},{"title":"Federation to ClickHouse setup guide","sidebarTitle":"Setup guide","href":"/docs/federation/clickhouse/setup"}]}]}]},{"group":"Identity \u0026 Access","pages":[{"title":"Applications","icon":"lock-keyhole","href":"/docs/applications"},{"title":"Access Policies","description":"Fine-grained control over Data Pool access with column and row-level rules","icon":"shield-halved","href":"/docs/access-policies"},{"title":"Multi-tenant JWT tokens","sidebarTitle":"Multi-tenant JWT tokens","icon":"building-shield","href":"/docs/multi-tenant-jwt-tokens"}]},{"group":"Resources","pages":[{"group":"Guides","icon":"book","pages":[{"title":"Choosing a Propeller","description":"Guide to selecting the optimal Propeller size for your use case","sidebarTitle":"Choosing a Propeller","href":"/docs/guides/choosing-a-propeller"},{"title":"Default timestamp","sidebarTitle":"Default Timestamp","href":"/docs/guides/default-timestamp"},{"title":"Selecting table engine and sorting key","sidebarTitle":"Table Engine \u0026 Sorting Key","href":"/docs/guides/table-engine-and-sorting-key"},{"title":"Partition key","sidebarTitle":"Partition Key","href":"/docs/guides/partition-key"}]},{"group":"Terraform","icon":"gears","pages":[{"title":"Propel Terraform provider","sidebarTitle":"Overview","href":"/docs/terraform/overview"},{"title":"Advanced examples","sidebarTitle":"Advanced Examples","href":"/docs/terraform/advanced-examples"}]}]},{"group":"Enterprise","pages":[{"title":"Single Sign-On (SSO)","icon":"user-lock","href":"/docs/single-sign-on"}]}]},{"anchor":"SQL Reference","icon":"database","pages":[{"title":"SQL Reference","href":"/docs/sql-reference/overview"}]},{"anchor":"Management API","icon":"code","pages":[{"title":"Management API","href":"/docs/management-api/overview"}]},{"anchor":"REST API Reference","hidden":true,"icon":"square-terminal","pages":[{"title":"REST API Reference","href":"/docs/api-reference/api-keys/list-api-keys"}]}]},{"tab":"Ingestion","pages":[{"title":"Ingestion","href":"/docs/ingestion/overview"}]},{"tab":"Query APIs","pages":[{"title":"Query APIs","href":"/docs/query-apis/overview"}]},{"tab":"Embeddable UI","pages":[{"title":"Embeddable UI","href":"/docs/embeddable-ui/introduction"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/docs/changelog/2024"}]}]},"basePath":"","title":"Multi-tenant JWT tokens - Propel docs","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-CG7QalVD.js","DynamicMarkdown-B_9ywLDq.js","zoom-image-lightbox-uS0aI388.js","lightbox-handle-r17bVUz3.js"]}