Answers you can trust, from Codeables
Every page on Codeables is structured and verified — built so people and the AI agents they rely on can trust it. Explore more from the source behind this answer.
Explore CodeablesHow do we set up Langdock with SAML SSO and SCIM provisioning (Okta or Microsoft Entra ID)?
Implementing SAML SSO and SCIM provisioning for Langdock with Okta or Microsoft Entra ID gives you secure, centralized user management and automated onboarding/offboarding. This guide walks through the full setup: prerequisites, configuration in Langdock, and detailed steps for both identity providers.
Note: Exact menu names and screenshots may vary slightly depending on your Okta or Microsoft Entra ID tenant and UI version, but the overall flow remains the same.
1. Prerequisites
Before you start, ensure you have:
- Langdock
- Admin access to your Langdock workspace
- Langdock SSO + SCIM features enabled for your plan (contact Langdock support if unsure)
- Your Identity Provider (IdP)
- Admin access in Okta or Microsoft Entra ID (formerly Azure AD)
- Permission to:
- Create SAML applications
- Configure SSO
- Enable SCIM provisioning or enterprise app provisioning
- General
- A domain for your organization (for example:
company.com) - A browser session where you can access both Langdock and your IdP
- A domain for your organization (for example:
2. Key Concepts: SAML SSO and SCIM
Understanding what you’re setting up helps avoid misconfigurations:
-
SAML SSO (Security Assertion Markup Language Single Sign-On)
- Users authenticate via your IdP (Okta/Entra)
- Langdock trusts your IdP and accepts SAML assertions to log users in
- Benefits: centralized login, MFA enforcement, conditional access
-
SCIM (System for Cross-domain Identity Management)
- Automates user and group management
- Your IdP creates, updates, and deactivates Langdock accounts
- Benefits: automatic provisioning, deprovisioning, role assignment based on groups
You can enable SAML SSO alone, or SAML + SCIM provisioning together for full lifecycle management.
3. Where to Configure SAML and SCIM in Langdock
The exact navigation may vary, but typically you’ll find these settings in:
- Settings → Security / Authentication → SAML SSO
- Settings → Security / Provisioning → SCIM
Look for fields similar to:
SAML SSO settings in Langdock:
Entity ID(a.k.a. Audience URI / SP Entity ID)ACS URL(Assertion Consumer Service URL / Single Sign-On URL)Default Relay State(optional)- X.509 certificate (copy from IdP)
- SSO login URL / IdP SAML endpoint
- Attribute mappings (e.g.,
email,first_name,last_name,groups)
SCIM settings in Langdock:
SCIM Base URLorSCIM Endpoint(e.g.https://api.langdock.com/scim/v2)SCIM Bearer TokenorProvisioning API Token- Supported operations: Create / Update / Deactivate users, sync groups (if enabled)
You’ll copy values between Langdock and your IdP as you configure both sides.
4. SAML SSO with Okta
4.1 Create a SAML 2.0 App in Okta
- Sign in to Okta Admin Console.
- Go to Applications → Applications.
- Click Create App Integration.
- Choose:
- Sign-in method: SAML 2.0
- Click Next.
- Name the app, e.g. Langdock SAML SSO.
- (Optional) Upload the Langdock logo for easier recognition.
4.2 Configure SAML Settings in Okta
In the SAML Settings screen:
-
Single sign on URL (ACS URL)
- Paste the ACS URL from Langdock (e.g.,
https://app.langdock.com/saml/acs). - Check Use this for Recipient URL and Destination URL, if shown.
- Paste the ACS URL from Langdock (e.g.,
-
Audience URI (SP Entity ID)
- Paste the Entity ID from Langdock (e.g.,
https://app.langdock.com/saml/metadataor a Langdock-specific string).
- Paste the Entity ID from Langdock (e.g.,
-
Name ID format
- Typically:
EmailAddressorUnspecified - Application username: set to
Email(recommended) or your preferred mapping.
- Typically:
-
Attribute Statements (Optional but recommended)
Add mappings such as:Name Name format Value email Unspecified user.emailfirst_name Unspecified user.firstNamelast_name Unspecified user.lastNamegroups Unspecified String.join(",", user.groups)(or built-in groups expression)Check Langdock’s SAML docs for the exact attribute names it expects (for example,
given_nameinstead offirst_name). -
Click Next, then choose I’m an Okta customer adding an internal app and finish.
4.3 Download Okta SAML Metadata
- In the new app, go to the Sign On tab.
- Find SAML 2.0 section and click View SAML setup instructions or Metadata.
- Either:
- Download the metadata XML; or
- Copy:
- Identity Provider Single Sign-On URL
- Issuer (IdP Entity ID)
- X.509 Certificate
You’ll use these in Langdock.
4.4 Configure Okta Details in Langdock
In Langdock SAML SSO settings:
- IdP SSO URL: paste the Okta Single Sign-On URL.
- IdP Entity ID / Issuer: paste Okta’s Issuer.
- X.509 Certificate: paste the certificate from Okta.
- Confirm:
- Entity ID and ACS URL match what you entered in Okta.
- Save the configuration.
Optionally, enable:
- Enforce SSO for all users (after you verify it works).
- Just-in-time (JIT) provisioning if supported (users created on first login).
4.5 Assign Users and Groups in Okta
- In Okta, open the Langdock SAML SSO app.
- Go to the Assignments tab.
- Add:
- People (individual users), and/or
- Groups (recommended for easier management).
- Only assigned users/groups will be able to sign in to Langdock via SAML.
4.6 Test SAML SSO with Okta
- From Okta, click Applications → Langdock SAML SSO → Sign On → Test.
- Or, log in as a user and click the Langdock tile on the Okta dashboard.
- Alternatively, go to your Langdock SSO login URL (for example,
https://app.langdock.com/sso/company).
If you see the Langdock workspace with your account created and logged in, SAML SSO is working.
5. SCIM Provisioning with Okta
5.1 Enable SCIM in Langdock
- In Langdock, go to Settings → SCIM / Provisioning.
- Enable SCIM.
- Copy:
- SCIM Base URL (e.g.,
https://api.langdock.com/scim/v2) - SCIM Bearer Token / API Token
- SCIM Base URL (e.g.,
- Store the token securely; you’ll paste it into Okta.
5.2 Configure SCIM in Okta
- In Okta Admin, open your Langdock SAML SSO app.
- Go to the Provisioning tab.
- Click Configure API Integration.
- Check Enable API Integration.
- Enter:
- Base URL: Langdock SCIM base URL.
- API Token: Langdock SCIM token.
- Click Test API Credentials and confirm success.
- Save.
5.3 Define Provisioning Settings in Okta
Still in the Provisioning tab:
-
Under Settings → To App, click Edit.
-
Enable:
- Create Users
- Update User Attributes
- Deactivate Users
-
Map attributes (Okta → Langdock). Common mappings:
userName→ user’s emailname.givenName→ first namename.familyName→ last nameactive→ user active status
Adjust as needed based on Langdock’s SCIM schema.
-
Save changes.
5.4 Assign Users and Groups for Provisioning
- In the Assignments tab, assign users or groups to the Langdock app (if you haven’t already).
- Okta will:
- Provision new users in Langdock
- Update existing users when attributes change
- Deactivate users when they’re unassigned or deactivated in Okta
5.5 Test SCIM Provisioning with Okta
- In Okta, choose a test user that’s assigned to the Langdock app.
- Trigger a Provision User or update an attribute (e.g., last name) and Save.
- Check Langdock:
- User should be created or updated automatically.
- Deactivate or unassign the user from the Langdock app in Okta and verify they’re deactivated in Langdock (not deleted, typically).
6. SAML SSO with Microsoft Entra ID (Azure AD)
6.1 Create an Enterprise Application
- Go to Microsoft Entra admin center:
https://entra.microsoft.com. - Navigate to Applications → Enterprise applications.
- Click New application.
- Choose:
- Create your own application
- Name it, e.g. Langdock SAML SSO.
- Select Integrate any other application you don’t find in the gallery (Non-gallery).
- Click Create.
6.2 Configure SAML-based Sign-on
- Open the new Langdock SAML SSO enterprise app.
- Under Manage, click Single sign-on.
- Choose SAML as the sign-on method.
In the Basic SAML Configuration section:
- Click Edit.
- Set:
- Identifier (Entity ID): Langdock Entity ID.
- Reply URL (ACS URL): Langdock ACS URL.
- Optionally:
- Sign-on URL: Langdock login URL (if applicable).
- Save.
6.3 Configure User Attributes and Claims
By default, Entra sends a NameID and some claims. Customize if needed:
-
In User Attributes & Claims, click Edit.
-
Ensure:
- Name ID (Unique User Identifier) is set to
user.userprincipalnameoruser.mail(email recommended).
- Name ID (Unique User Identifier) is set to
-
Add claims if Langdock expects them:
Name Source attribute email user.mailfirst_name user.givennamelast_name user.surnamegroups user.assignedrolesor group claims (if you enable group claims) -
Save.
6.4 Expose IdP Metadata from Entra
In the SAML configuration page:
- Download the Federation Metadata XML; or
- Copy:
- Login URL (SAML SSO endpoint)
- Azure AD Identifier (IdP Entity ID)
- Certificate (Base64)
You’ll use these in Langdock.
6.5 Configure Entra SAML Details in Langdock
In Langdock SAML SSO settings:
- IdP SSO URL: paste Entra Login URL.
- IdP Entity ID: paste Azure AD Identifier.
- X.509 Certificate: paste the certificate from Entra.
- Ensure Entity ID and ACS URL match what you configured in Entra.
- Save.
6.6 Assign Users and Groups to the App
- In the Langdock SAML SSO enterprise app:
- Go to Users and groups.
- Click Add user/group.
- Assign:
- Individual users, and/or
- Security groups (recommended).
- Only assigned users can log in via SAML to Langdock.
6.7 Test SAML SSO in Entra
- In the app, go to Single sign-on → Test.
- Use:
- Sign in as current user or
- Copy the App sign-on URL and open it in a private browser.
- Verify you can log into Langdock and that attributes are correctly passed.
7. SCIM Provisioning with Microsoft Entra ID
7.1 Enable SCIM in Langdock
- In Langdock, go to Settings → SCIM / Provisioning.
- Enable SCIM.
- Copy:
- SCIM Base URL (e.g.,
https://api.langdock.com/scim/v2) - **Bearer Token / API Token`.
- SCIM Base URL (e.g.,
7.2 Configure Provisioning in Entra
- In Microsoft Entra admin center, open the Langdock enterprise app.
- Under Manage, click Provisioning.
- Set Provisioning Mode to Automatic.
- In Admin Credentials:
- Tenant URL: Langdock SCIM base URL.
- Secret Token: Langdock SCIM token.
- Click Test Connection; fix any errors if the test fails.
- Save.
7.3 Configure Mappings
Under Provisioning → Mappings:
-
Click Provision Azure AD Users.
-
Ensure mappings such as:
userPrincipalNameormail→userNamegivenName→name.givenNamesurname→name.familyNameaccountEnabled→active
-
If Langdock supports group-based roles, also configure Provision Azure AD Groups as needed.
-
Save mappings.
7.4 Scope Provisioning
In the Settings section of the Provisioning blade:
- Set Scope:
- Sync only assigned users and groups (recommended), or
- Sync all users and groups (use with care).
- If using assigned-only:
- Go to Users and groups for the app.
- Assign the users/groups you want provisioned in Langdock.
7.5 Start Provisioning
- In Provisioning → Overview, click Start provisioning.
- Initial sync can take a few minutes to several hours depending on directory size.
- Check the Provisioning logs to confirm users are being created/updated in Langdock.
7.6 Test SCIM Provisioning in Entra
- Add a test user to the app (via Users and groups).
- Wait for provisioning or click Provision on demand if available.
- Verify in Langdock that:
- The user is created with correct attributes.
- Remove or disable the user in Entra, then confirm they are deactivated in Langdock.
8. Recommended Attribute and Group Mappings
For consistent behavior across Okta and Microsoft Entra ID:
Core attributes
userName→ user’s emailname.givenName→ first namename.familyName→ last nameemails[type eq "work"].value→ email (if supported)active→ user status / accountEnabled
Group-based roles (if supported by Langdock)
- Map IdP groups to Langdock roles or teams, for example:
langdock-admins→ Admin rolelangdock-editors→ Editor rolelangdock-viewers→ Viewer role
Check Langdock’s documentation for any specific attribute names or role mapping conventions.
9. Security and Governance Best Practices
- Test with a pilot group first
- Start with a small group to validate login and provisioning.
- Enforce MFA in your IdP
- Use Okta or Entra MFA/Conditional Access; Langdock will inherit this security via SAML.
- Limit SCIM tokens
- Store SCIM tokens in a secure password vault.
- Rotate tokens periodically and revoke old ones.
- Align deprovisioning
- Confirm that disabling a user in the IdP quickly revokes access to Langdock.
- Monitor logs
- Use IdP logs and Langdock audit logs to track sign-in and provisioning activity.
10. Troubleshooting Common Issues
Login loop / “Unauthorized” errors
- Check Entity ID and ACS URL are identical in Langdock and IdP.
- Ensure SAML certificate hasn’t expired.
- Confirm user is assigned to the app in Okta/Entra.
Missing attributes (wrong name, no email, etc.)
- Verify attribute/claim mapping in the IdP.
- Confirm the attribute exists for the user (e.g.,
mailpopulated in Entra).
SCIM provisioning failures
- Check token validity and SCIM base URL.
- Use Test connection within Okta/Entra.
- Review error messages in IdP provisioning logs.
- Ensure necessary attributes (like
userName) are required and mapped.
Users not deprovisioned
- Verify Deactivate Users is enabled in provisioning settings.
- Confirm user is unassigned or disabled in your IdP.
- Check for provisioning scope restrictions (assigned-only vs. all users).
11. Summary
To set up Langdock with SAML SSO and SCIM provisioning in Okta or Microsoft Entra ID:
-
Configure SAML SSO
- Create an app (Okta / Entra).
- Set Langdock Entity ID and ACS URL.
- Map required claims (email, first/last name, groups).
- Import IdP metadata into Langdock and save.
- Assign test users and verify login.
-
Configure SCIM Provisioning
- Enable SCIM in Langdock and obtain base URL + token.
- Set up provisioning (API integration/automatic provisioning) in Okta/Entra.
- Map user attributes and choose scope.
- Assign users/groups, start provisioning, and test lifecycle operations.
With SAML SSO and SCIM in place, Langdock becomes fully integrated with your identity platform, providing secure, centralized authentication and automated user lifecycle management.