Overview
This guide demonstrates how to integrate an Identity Provider (IDP) such as Okta or Entra ID with Barndoor to enable:- SSO Login: Allow all users in your organization to authenticate via your IDP
- Automatic Role Mapping: Provision users as admins or standard users based on IDP group membership
- Centralized User Management: Onboard and offboard users directly from your IDP
Video Walkthrough
Prerequisites:
- Admin access to your Barndoor account
- Admin access to your IDP (Okta, Entra, etc.)
- An IDP application configured with OIDC/OAuth or SAML 2.0
Step 1: Configure IDP Connection in Barndoor
Navigate to IDP Setting]s
Go here n your Barndoor dashboard.
Complete IDP Setup Form
- Provide a display name. i.e., your domain name From your IDP application collect:
- Issuer URL: Your organization’s Issuer URL
- Client ID: OAuth client ID from your IDP app
- Client Secret: OAuth client secret from your IDP app
Test the Connection
Click Test Connection to verify that Barndoor can communicate with your IDP.✅ Expected result: “Connection successful” message
Step 2: Verify SSO Login Works
Attempt Login with Enterprise User
Try logging in with the enterprise test user from Step 1 using a users email connected to your IDPYou should now be redirected to your IDP’s login page.
Authenticate via IDP
Complete authentication through your IDP (enter credentials, complete MFA if required).
SSO is now working! Users can authenticate via your IDP.
Step 3: Configure Role Mapping (Auto-Provision Admins)
Now we’ll set up automatic role assignment based on IDP group membership.Create Admin Group in IDP
Create or Select Admin Group
Create a new group called “Barndoor Admins” (or use an existing admin group).
Map IDP Group to Barndoor Admin Role
Configure Admin Group Mapping
Set the group name that defines administrators:
- IDP Group Name: Enter
Barndoor Admins(exact name from your IDP) - Barndoor Role: Select Admin
Verify Role Provisioning
Role mapping is working! Users in the IDP admin group automatically receive admin permissions.
Step 4: Test User Offboarding (Remove Admin Access)
Remove User from Admin Group in IDP
In your IDP, go to Directory → Groups → Barndoor Admins.Remove the test user from the Barndoor Admins group.
Changes to IDP group membership are reflected immediately upon next login to Barndoor.
Step 5: Remove SSO Connection (Optional)
If you need to disconnect the IDP integration:Remove Connection
Click Remove SSO Connection (or similar option).Confirm the removal when prompted.
Summary
You’ve successfully configured IDP integration with Barndoor! Here’s what you accomplished: ✅ **Connected IDP ** for SSO/OIDC authentication✅ Enabled automatic role provisioning based on IDP groups
✅ Tested user onboarding (SSO login and admin access)
✅ Tested user offboarding (removed admin access via IDP)
✅ Verified SSO disconnection process
Key Benefits
Centralized authentication: Users log in via your existing IDP Automated role management: No manual user provisioning needed Streamlined onboarding: New employees automatically get access Instant offboarding: Removing users from IDP immediately revokes accessTroubleshooting
SSO Login Redirects but Fails
SSO Login Redirects but Fails
Common causes:
- Incorrect Client ID or Client Secret
- IDP application not configured with correct redirect URIs
- OIDC endpoints not properly discovered
- domain mismatch
Role Mapping Not Working
Role Mapping Not Working
Common causes:
- Group name mismatch (case-sensitive)
- User not actually in the IDP group
- Role mapping not saved properly
Users Can't Access After IDP Connection
Users Can't Access After IDP Connection
Common causes:
- Users not assigned to the IDP application
- IDP application deactivated or suspended
- Network/firewall blocking communication
