Connect your identity provider to Modelcode for centralized authentication
Single Sign-On (SSO) lets your team sign in to Modelcode using your organization’s existing identity provider. Instead of managing separate passwords, users authenticate through a provider you already control — such as Okta, GitLab, Amazon Cognito, or any provider that supports OpenID Connect or SAML 2.0.
To configure SSO, you must be signed in with email and password. The SSO settings page is not available to admins who signed in with a social provider (GitHub, GitLab, or Microsoft).
How It Works
Modelcode supports two industry-standard protocols for SSO:
Protocol
Best For
OpenID Connect (OIDC)
Modern identity providers with discovery endpoints (GitLab, Auth0, Cognito, Azure AD)
SAML 2.0
Enterprise identity providers with XML-based federation (Okta, OneLogin, PingFederate, ADFS)
Both protocols provide the same end-user experience — your team signs in through your identity provider, and Modelcode handles the rest.
We recommend SAML 2.0 when your identity provider supports it. SAML is typically quicker to set up — most providers let you configure it with a single metadata URL, without needing to manage client secrets or authorization server policies.
What Happens When SSO Is Enabled
An admin configures the connection between Modelcode and your identity provider
Modelcode generates a Portal Link — a unique URL for your organization
Team members visit the Portal Link and are redirected to your identity provider to authenticate
After signing in, they are redirected back to Modelcode with an active session
The SSO Portal
Every organization with SSO enabled receives a dedicated Portal Link. This is the URL your team uses to sign in via your identity provider.The portal link follows this format:
You can find your portal link on the Single Sign-On settings page after configuring your provider. Share this link with your team — it’s the entry point for SSO-based sign-in.
Bookmark your Portal Link or add it to your internal wiki so team members can find it easily.
SSO and Invitations
Users must be invited to your organization before they can sign in with SSO. SSO does not allow self-registration — an admin must send an invitation first. When SSO is enabled, invited users are automatically routed through your identity provider. The invitation email includes a link that takes the user through the SSO flow instead of the standard password-based sign-up.
If a user tries to sign in via the Portal Link without an existing invitation or account, they will see: “Your organization uses SSO. Please ask your administrator for an invitation to join.”
Prerequisites
A Modelcode account with admin access, signed in with email and password — the SSO settings page is not available to users who signed in with a social provider (GitHub, GitLab, Microsoft)
An identity provider that supports OpenID Connect or SAML 2.0
Privileges in your identity provider to create and edit applications and policies
Setting Up SSO
To configure SSO, navigate to Single Sign-On in the Modelcode sidebar. From there you can:
Choose your protocol — OpenID Connect or SAML 2.0
Enter your identity provider details
Click Verify & Save to validate the connection and activate SSO
Modelcode validates the connection before saving. For OIDC, it fetches the discovery document. For SAML, it parses the metadata or validates the SSO endpoint.
All SSO URLs must use HTTPS. HTTP is not accepted for production configurations.
Provider Guides
Choose the guide that matches your identity provider:
SAML 2.0 — Generic SAML setup for any compliant provider
By Identity Provider
Okta — Configure Okta with SAML 2.0 or OpenID Connect
Amazon Cognito — Configure Amazon Cognito as an OIDC identity provider
Removing SSO
To remove your SSO configuration, go to the Single Sign-On settings page and click Remove SSO. This disconnects your identity provider. Existing user accounts are not deleted — users can continue to sign in with any other supported authentication method.
Removing SSO revokes active sessions for users who were signed in via SSO. They will need to sign in again using another method.
Important Behaviors
Password Reset Is Disabled for SSO Users
Once a user authenticates through SSO, password reset is no longer available for their account. Since authentication is managed by your identity provider, password changes must be handled there — not in Modelcode.If a user needs to change their credentials, direct them to your identity provider’s self-service password reset flow.
Troubleshooting
Portal Errors
These are common errors users may see on the SSO Portal page:
Error
Cause
Resolution
”Your organization uses SSO. Please ask your administrator for an invitation to join.”
The user has no account or invitation for this organization.
Admin must send an invitation before the user can sign in via SSO.
”Your email is already associated with a different SSO identity.”
The user’s email is linked to a different identity provider account.
Contact your administrator to resolve the identity conflict.
”This account belongs to a different organization.”
The user authenticated with an account that belongs to a different organization.
Use the Portal Link for the correct organization.
”Your identity provider has not verified this email address.”
The identity provider did not mark the user’s email as verified.
Verify the email address in your identity provider before retrying.
”Single sign-on failed.”
A general authentication failure occurred.
Try again. If the issue persists, check the SSO configuration and contact support.
”Your identity provider returned an error.”
The identity provider itself failed or rejected the login attempt.
Check your identity provider’s logs for details. The user may need to retry or the IdP configuration may need attention.
”SSO Not Found” on the Portal Page
The SSO configuration may have been removed or the Portal Link URL is incorrect. Check the Single Sign-On settings page to confirm SSO is still active and verify the URL.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Modelcode","colors":{"primary":"#069bfa","light":"#3db4ff","dark":"#0070c9"},"logo":{"light":"https://mintcdn.com/modelcodeai/FvveHrl7MJeyooqL/logo/light.svg?fit=max\u0026auto=format\u0026n=FvveHrl7MJeyooqL\u0026q=85\u0026s=16f79135c593bd6abebaf54cceb4767e","dark":"https://mintcdn.com/modelcodeai/FvveHrl7MJeyooqL/logo/dark.svg?fit=max\u0026auto=format\u0026n=FvveHrl7MJeyooqL\u0026q=85\u0026s=3fb838182196b5e8fe22a20c1fecb8bd"},"favicon":"https://mintcdn.com/modelcodeai/gIHFr_f_bIsWGfde/favicon.svg?fit=max\u0026auto=format\u0026n=gIHFr_f_bIsWGfde\u0026q=85\u0026s=3d0e41c956e5e16277317ef7bcaa90a6","navbar":{"links":[{"href":"mailto:support@modelcode.ai","label":"Support"}],"primary":{"type":"button","label":"Get Started","href":"https://modelcode.ai"}},"footer":{"socials":{"github":"https://github.com/Modelcode-ai","linkedin":"https://www.linkedin.com/company/modelcode-ai"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"modelcodeai","hasAudioNarration":false,"actualSubdomain":"modelcodeai","customDomains":["docs.modelcode.ai"],"gitSource":{"type":"github","owner":"modelcode-ai","repo":"morph-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10d0b69ffae5051c40b14b"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b134028e8026b14a14afbcc","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"Project Setup","count":8},{"language":"default","tag":"Administration","count":7},{"language":"default","tag":"Running Your Migration","count":6},{"language":"default","tag":"Source Control","count":6},{"language":"default","tag":"Single Sign-On","count":5},{"language":"default","tag":"Getting Started","count":4},{"language":"default","tag":"Knowledge and Rules","count":4},{"language":"default","tag":"Code Review","count":4},{"language":"default","tag":"Support","count":4},{"language":"default","tag":"Claude Code Integration","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@modelcode.ai"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","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":"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":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"setup/sso/single-sign-on","slug":"/setup/sso/single-sign-on","pageMetadata":{"title":"Single Sign-On","description":"Connect your identity provider to Modelcode for centralized authentication","href":"/setup/sso/single-sign-on"},"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: \"Connect your identity provider to Modelcode for centralized authentication\"\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={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,OptimizedImage,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(`div`,{align:`center`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/modelcodeai/QUhUzX9DdvjgOZyW/setup/images/sso/sso-header.png?fit=max\u0026auto=format\u0026n=QUhUzX9DdvjgOZyW\u0026q=85\u0026s=069463f7c0b32db78be6f3164d4e4d23`,alt:`Modelcode Single Sign-On settings page`,width:`85%`,\"data-og-width\":`2568`,\"data-og-height\":`1214`,\"data-path\":`setup/images/sso/sso-header.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/modelcodeai/QUhUzX9DdvjgOZyW/setup/images/sso/sso-header.png?w=280\u0026fit=max\u0026auto=format\u0026n=QUhUzX9DdvjgOZyW\u0026q=85\u0026s=1005ea82cfc74a615f359f97c3d4a30c 280w, https://mintcdn.com/modelcodeai/QUhUzX9DdvjgOZyW/setup/images/sso/sso-header.png?w=560\u0026fit=max\u0026auto=format\u0026n=QUhUzX9DdvjgOZyW\u0026q=85\u0026s=5c47b487aa56a96c418eb270c7c2eed1 560w, https://mintcdn.com/modelcodeai/QUhUzX9DdvjgOZyW/setup/images/sso/sso-header.png?w=840\u0026fit=max\u0026auto=format\u0026n=QUhUzX9DdvjgOZyW\u0026q=85\u0026s=5e33bd910f057d0a48e9204ed23de284 840w, https://mintcdn.com/modelcodeai/QUhUzX9DdvjgOZyW/setup/images/sso/sso-header.png?w=1100\u0026fit=max\u0026auto=format\u0026n=QUhUzX9DdvjgOZyW\u0026q=85\u0026s=3fe26b1952ea8b73d78667996126c82f 1100w, https://mintcdn.com/modelcodeai/QUhUzX9DdvjgOZyW/setup/images/sso/sso-header.png?w=1650\u0026fit=max\u0026auto=format\u0026n=QUhUzX9DdvjgOZyW\u0026q=85\u0026s=b503270ff2f2cfa08be8b6bde9e0fba6 1650w, https://mintcdn.com/modelcodeai/QUhUzX9DdvjgOZyW/setup/images/sso/sso-header.png?w=2500\u0026fit=max\u0026auto=format\u0026n=QUhUzX9DdvjgOZyW\u0026q=85\u0026s=e73429232098ada048202c22ad3e2b88 2500w`})}),`\n`,_jsx(_components.p,{children:`Single Sign-On (SSO) lets your team sign in to Modelcode using your organization’s existing identity provider. Instead of managing separate passwords, users authenticate through a provider you already control — such as Okta, GitLab, Amazon Cognito, or any provider that supports OpenID Connect or SAML 2.0.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`To configure SSO, you must be signed in with email and password.`}),` The SSO settings page is not available to admins who signed in with a social provider (GitHub, GitLab, or Microsoft).`]})}),`\n`,_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How It Works`}),`\n`,_jsx(_components.p,{children:`Modelcode supports two industry-standard protocols for SSO:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Protocol`}),_jsx(_components.th,{children:`Best For`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`OpenID Connect (OIDC)`})}),_jsx(_components.td,{children:`Modern identity providers with discovery endpoints (GitLab, Auth0, Cognito, Azure AD)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`SAML 2.0`})}),_jsx(_components.td,{children:`Enterprise identity providers with XML-based federation (Okta, OneLogin, PingFederate, ADFS)`})]})]})]}),`\n`,_jsx(_components.p,{children:`Both protocols provide the same end-user experience — your team signs in through your identity provider, and Modelcode handles the rest.`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`We recommend SAML 2.0 when your identity provider supports it.`}),` SAML is typically quicker to set up — most providers let you configure it with a single metadata URL, without needing to manage client secrets or authorization server policies.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`what-happens-when-sso-is-enabled`,children:`What Happens When SSO Is Enabled`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`An admin configures the connection between Modelcode and your identity provider`}),`\n`,_jsxs(_components.li,{children:[`Modelcode generates a `,_jsx(_components.strong,{children:`Portal Link`}),` — a unique URL for your organization`]}),`\n`,_jsx(_components.li,{children:`Team members visit the Portal Link and are redirected to your identity provider to authenticate`}),`\n`,_jsx(_components.li,{children:`After signing in, they are redirected back to Modelcode with an active session`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-sso-portal`,children:`The SSO Portal`}),`\n`,_jsxs(_components.p,{children:[`Every organization with SSO enabled receives a dedicated `,_jsx(_components.strong,{children:`Portal Link`}),`. This is the URL your team uses to sign in via your identity provider.`]}),`\n`,_jsx(_components.p,{children:`The portal link follows this format:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://morph.modelcode.ai/sso-portal/\u003cyour-organization-id>`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`You can find your portal link on the `,_jsx(_components.strong,{children:`Single Sign-On`}),` settings page after configuring your provider. Share this link with your team — it’s the entry point for SSO-based sign-in.`]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Bookmark your Portal Link or add it to your internal wiki so team members can find it easily.`})}),`\n`,_jsx(Heading,{level:`2`,id:`sso-and-invitations`,children:`SSO and Invitations`}),`\n`,_jsx(_components.p,{children:`Users must be invited to your organization before they can sign in with SSO. SSO does not allow self-registration — an admin must send an invitation first. When SSO is enabled, invited users are automatically routed through your identity provider. The invitation email includes a link that takes the user through the SSO flow instead of the standard password-based sign-up.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`If a user tries to sign in via the Portal Link without an existing invitation or account, they will see: `,_jsx(_components.strong,{children:`“Your organization uses SSO. Please ask your administrator for an invitation to join.”`})]})}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A Modelcode account with admin access, `,_jsx(_components.strong,{children:`signed in with email and password`}),` — the SSO settings page is not available to users who signed in with a social provider (GitHub, GitLab, Microsoft)`]}),`\n`,_jsxs(_components.li,{children:[`An identity provider that supports `,_jsx(_components.strong,{children:`OpenID Connect`}),` or `,_jsx(_components.strong,{children:`SAML 2.0`})]}),`\n`,_jsx(_components.li,{children:`Privileges in your identity provider to create and edit applications and policies`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`setting-up-sso`,children:`Setting Up SSO`}),`\n`,_jsxs(_components.p,{children:[`To configure SSO, navigate to `,_jsx(_components.strong,{children:`Single Sign-On`}),` in the Modelcode sidebar. From there you can:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Choose your protocol — `,_jsx(_components.strong,{children:`OpenID Connect`}),` or `,_jsx(_components.strong,{children:`SAML 2.0`})]}),`\n`,_jsx(_components.li,{children:`Enter your identity provider details`}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Verify \u0026 Save`}),` to validate the connection and activate SSO`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Modelcode validates the connection before saving. For OIDC, it fetches the discovery document. For SAML, it parses the metadata or validates the SSO endpoint.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`All SSO URLs must use HTTPS. HTTP is not accepted for production configurations.`})}),`\n`,_jsx(Heading,{level:`2`,id:`provider-guides`,children:`Provider Guides`}),`\n`,_jsx(_components.p,{children:`Choose the guide that matches your identity provider:`}),`\n`,_jsx(Heading,{level:`3`,id:`by-protocol`,children:`By Protocol`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/setup/sso/oidc`,children:`OpenID Connect (OIDC)`}),` — Generic OIDC setup for any compliant provider`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/setup/sso/saml`,children:`SAML 2.0`}),` — Generic SAML setup for any compliant provider`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`by-identity-provider`,children:`By Identity Provider`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/setup/sso/okta`,children:`Okta`}),` — Configure Okta with SAML 2.0 or OpenID Connect`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/setup/sso/cognito`,children:`Amazon Cognito`}),` — Configure Amazon Cognito as an OIDC identity provider`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`removing-sso`,children:`Removing SSO`}),`\n`,_jsxs(_components.p,{children:[`To remove your SSO configuration, go to the `,_jsx(_components.strong,{children:`Single Sign-On`}),` settings page and click `,_jsx(_components.strong,{children:`Remove SSO`}),`. This disconnects your identity provider. Existing user accounts are not deleted — users can continue to sign in with any other supported authentication method.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Removing SSO revokes active sessions for users who were signed in via SSO. They will need to sign in again using another method.`})}),`\n`,_jsx(Heading,{level:`2`,id:`important-behaviors`,children:`Important Behaviors`}),`\n`,_jsx(Heading,{level:`3`,id:`password-reset-is-disabled-for-sso-users`,children:`Password Reset Is Disabled for SSO Users`}),`\n`,_jsx(_components.p,{children:`Once a user authenticates through SSO, password reset is no longer available for their account. Since authentication is managed by your identity provider, password changes must be handled there — not in Modelcode.`}),`\n`,_jsx(_components.p,{children:`If a user needs to change their credentials, direct them to your identity provider’s self-service password reset flow.`}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsx(Heading,{level:`3`,id:`portal-errors`,children:`Portal Errors`}),`\n`,_jsx(_components.p,{children:`These are common errors users may see on the SSO Portal page:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Error`}),_jsx(_components.th,{children:`Cause`}),_jsx(_components.th,{children:`Resolution`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`”Your organization uses SSO. Please ask your administrator for an invitation to join.”`})}),_jsx(_components.td,{children:`The user has no account or invitation for this organization.`}),_jsx(_components.td,{children:`Admin must send an invitation before the user can sign in via SSO.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`”Your email is already associated with a different SSO identity.”`})}),_jsx(_components.td,{children:`The user’s email is linked to a different identity provider account.`}),_jsx(_components.td,{children:`Contact your administrator to resolve the identity conflict.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`”This account belongs to a different organization.”`})}),_jsx(_components.td,{children:`The user authenticated with an account that belongs to a different organization.`}),_jsx(_components.td,{children:`Use the Portal Link for the correct organization.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`”Your identity provider has not verified this email address.”`})}),_jsx(_components.td,{children:`The identity provider did not mark the user’s email as verified.`}),_jsx(_components.td,{children:`Verify the email address in your identity provider before retrying.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`”Single sign-on failed.”`})}),_jsx(_components.td,{children:`A general authentication failure occurred.`}),_jsx(_components.td,{children:`Try again. If the issue persists, check the SSO configuration and contact support.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`”Your identity provider returned an error.”`})}),_jsx(_components.td,{children:`The identity provider itself failed or rejected the login attempt.`}),_jsx(_components.td,{children:`Check your identity provider’s logs for details. The user may need to retry or the IdP configuration may need attention.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`”sso-not-found”-on-the-portal-page`,children:`”SSO Not Found” on the Portal Page`}),`\n`,_jsxs(_components.p,{children:[`The SSO configuration may have been removed or the Portal Link URL is incorrect. Check the `,_jsx(_components.strong,{children:`Single Sign-On`}),` settings page to confirm SSO is still active and verify the URL.`]})]})}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":"Single Sign-On","description":"Connect your identity provider to Modelcode for centralized authentication","href":"/setup/sso/single-sign-on"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"How It Works","slug":"how-it-works","depth":2,"children":[{"title":"What Happens When SSO Is Enabled","slug":"what-happens-when-sso-is-enabled","depth":3,"children":[]}]},{"title":"The SSO Portal","slug":"the-sso-portal","depth":2,"children":[]},{"title":"SSO and Invitations","slug":"sso-and-invitations","depth":2,"children":[]},{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"Setting Up SSO","slug":"setting-up-sso","depth":2,"children":[]},{"title":"Provider Guides","slug":"provider-guides","depth":2,"children":[{"title":"By Protocol","slug":"by-protocol","depth":3,"children":[]},{"title":"By Identity Provider","slug":"by-identity-provider","depth":3,"children":[]}]},{"title":"Removing SSO","slug":"removing-sso","depth":2,"children":[]},{"title":"Important Behaviors","slug":"important-behaviors","depth":2,"children":[{"title":"Password Reset Is Disabled for SSO Users","slug":"password-reset-is-disabled-for-sso-users","depth":3,"children":[]}]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[{"title":"Portal Errors","slug":"portal-errors","depth":3,"children":[]},{"title":"”SSO Not Found” on the Portal Page","slug":"”sso-not-found”-on-the-portal-page","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"modelcodeai","siteName":"Modelcode","title":"Single Sign-On - Modelcode","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-04T22:35:27.080Z","originalFileLocation":"setup/sso/single-sign-on.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=\"Connect your identity provider to Modelcode for centralized authentication\">\u003cmeta data-mint-head name=\"application-name\" content=\"Modelcode\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/modelcodeai/H1hkunG9Mcy8ETVM/_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/modelcodeai/H1hkunG9Mcy8ETVM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/modelcodeai/H1hkunG9Mcy8ETVM/_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/modelcodeai/H1hkunG9Mcy8ETVM/_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/modelcodeai/H1hkunG9Mcy8ETVM/_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/modelcodeai/H1hkunG9Mcy8ETVM/_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/modelcodeai/H1hkunG9Mcy8ETVM/_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/modelcodeai/H1hkunG9Mcy8ETVM/_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/modelcodeai/H1hkunG9Mcy8ETVM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Single Sign-On - Modelcode\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connect your identity provider to Modelcode for centralized authentication\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Modelcode\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.modelcode.ai/setup/sso/single-sign-on\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://modelcodeai.mintlify.site/_mintlify/api/og/v2?division=Single+Sign-On\u0026amp;title=Single+Sign-On\u0026amp;description=Connect+your+identity+provider+to+Modelcode+for+centralized+authentication\u0026amp;theme=07f614b49cd68aaef23f5a56\u0026amp;signature=79f98a22a3baa2906eff8b6049e3ecf77984b19463ccc8f15fd40df2fe323f7e\">\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=\"Single Sign-On - Modelcode\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connect your identity provider to Modelcode for centralized authentication\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://modelcodeai.mintlify.site/_mintlify/api/og/v2?division=Single+Sign-On\u0026amp;title=Single+Sign-On\u0026amp;description=Connect+your+identity+provider+to+Modelcode+for+centralized+authentication\u0026amp;theme=07f614b49cd68aaef23f5a56\u0026amp;signature=79f98a22a3baa2906eff8b6049e3ecf77984b19463ccc8f15fd40df2fe323f7e\">\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/modelcodeai/H1hkunG9Mcy8ETVM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Modelcode\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#069bfa\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.modelcode.ai/setup/sso/single-sign-on\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/setup/sso/single-sign-on.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.modelcode.ai/#organization\",\"name\":\"Modelcode\",\"url\":\"https://docs.modelcode.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/modelcodeai/FvveHrl7MJeyooqL/logo/light.svg?fit=max\u0026auto=format\u0026n=FvveHrl7MJeyooqL\u0026q=85\u0026s=16f79135c593bd6abebaf54cceb4767e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.modelcode.ai#website\",\"name\":\"Modelcode\",\"url\":\"https://docs.modelcode.ai\",\"publisher\":{\"@id\":\"https://docs.modelcode.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.modelcode.ai/setup/sso/single-sign-on#webpage\",\"url\":\"https://docs.modelcode.ai/setup/sso/single-sign-on\",\"name\":\"Single Sign-On\",\"description\":\"Connect your identity provider to Modelcode for centralized authentication\",\"dateModified\":\"2026-12-04T22:35:27.080Z\",\"isPartOf\":{\"@id\":\"https://docs.modelcode.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.modelcode.ai/setup/sso/single-sign-on#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.modelcode.ai/setup/sso/single-sign-on#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Administration\",\"item\":\"https://docs.modelcode.ai/setup/build-environment/daemon-administration\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Single Sign-On\",\"item\":\"https://docs.modelcode.ai/setup/sso/single-sign-on\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.modelcode.ai/setup/sso/single-sign-on#article\",\"headline\":\"Single Sign-On\",\"name\":\"Single Sign-On\",\"description\":\"Connect your identity provider to Modelcode for centralized authentication\",\"url\":\"https://docs.modelcode.ai/setup/sso/single-sign-on\",\"mainEntityOfPage\":{\"@id\":\"https://docs.modelcode.ai/setup/sso/single-sign-on#webpage\"},\"dateModified\":\"2026-12-04T22:35:27.080Z\",\"publisher\":{\"@id\":\"https://docs.modelcode.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.modelcode.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Modelcode\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Modelcode\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/setup/sso/single-sign-on.md","siteName":"Modelcode","nav":{"global":null,"groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"Core Concepts","href":"/core-concepts"},{"title":"Supported Architectures","href":"/setup/supported-architectures"}]},{"group":"Source Control","pages":[{"title":"Source Control","sidebarTitle":"Overview","href":"/setup/source-control"},{"title":"GitHub Integration","sidebarTitle":"GitHub","href":"/setup/github-integration"},{"title":"GitLab Integration","sidebarTitle":"GitLab","href":"/setup/gitlab-integration"},{"title":"GitLab Self-Managed Integration","sidebarTitle":"GitLab Self-Managed","href":"/setup/gitlab-self-managed"},{"title":"Azure DevOps Integration","sidebarTitle":"Azure DevOps","href":"/setup/azure-devops-integration"},{"title":"Prerequisite Checks","sidebarTitle":"Prerequisite Checks","href":"/setup/prerequisite-checks"}]},{"group":"Build Environment","pages":[{"title":"Modelcode Hosted","href":"/setup/build-environment/modelcode-hosted"},{"title":"Self-Hosted Daemon","href":"/setup/build-environment/self-hosted-daemon"},{"title":"Switching Environments","href":"/setup/build-environment/switching-environment"}]},{"group":"Project Setup","pages":[{"title":"Modernization Goals","href":"/setup/modernization-goals"},{"title":"Project Spec","href":"/setup/reviewing-project-spec"},{"title":"Validation Level","href":"/setup/validation-level"},{"title":"Lifecycle Strategy","href":"/setup/lifecycle-strategy"},{"title":"Lifecycle Setup","href":"/setup/lifecycle-setup"},{"title":"Acceptance Criteria","href":"/setup/acceptance-criteria"},{"title":"Git Strategy and Branches","sidebarTitle":"Git Strategy","href":"/setup/git-strategy"},{"title":"Collaborative Onboarding","href":"/setup/collaborative-onboarding"}]},{"group":"Running Your Migration","pages":[{"title":"Roadmap","href":"/migration/roadmap"},{"title":"Milestones","href":"/migration/milestones"},{"title":"When a Run Needs Your Help","href":"/migration/run-needs-help"},{"title":"Editing Milestones","href":"/customization/editing-milestones"},{"title":"Ad-Hoc Milestones","href":"/migration/adhoc-milestones"},{"title":"Validation Hub","href":"/migration/validation-hub"}]},{"group":"Code Review","pages":[{"title":"Pull Requests","href":"/migration/pull-requests"},{"title":"Code Review Chat","href":"/migration/code-review-chat"},{"title":"Review Assignments","href":"/migration/review-issue-assignment"},{"title":"PR Agent","href":"/migration/pr-agent"}]},{"group":"Claude Code Integration","pages":[{"title":"Overview","href":"/claude-code/overview"},{"title":"Set Up Claude Code","href":"/claude-code/setup"},{"title":"Use Cases","href":"/claude-code/use-cases"}]},{"group":"Knowledge and Rules","pages":[{"title":"Project Knowledge","href":"/customization/project-knowledge"},{"title":"Comments","href":"/customization/commenting"},{"title":"Organizational Knowledge","href":"/customization/organizational-knowledge"},{"title":"Rules","href":"/customization/rules"}]},{"group":"Administration","pages":[{"title":"Daemon Administration","href":"/setup/build-environment/daemon-administration"},{"title":"Billing and Credits","description":"How usage-based billing works on the Morph Platform","href":"/support/billing-and-credits"},{"group":"Single Sign-On","pages":[{"title":"Single Sign-On","href":"/setup/sso/single-sign-on"},{"title":"OpenID Connect (OIDC)","description":"Configure Single Sign-On with any OpenID Connect identity provider","href":"/setup/sso/oidc"},{"title":"SAML 2.0","href":"/setup/sso/saml"},{"title":"Okta","href":"/setup/sso/okta"},{"title":"Amazon Cognito","href":"/setup/sso/cognito"}]}]},{"group":"Support","pages":[{"title":"Troubleshooting","href":"/support/troubleshooting"},{"title":"FAQ","href":"/support/faq"},{"title":"Videos","href":"/support/videos"},{"title":"What's New","href":"/support/whats-new"}]}]},"basePath":"","title":"Single Sign-On - Modelcode","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-B9SB_e-W.js","lightbox-handle-r17bVUz3.js"]}