Enterprise connections are common for B2B setups where each business customer is represented as an organization in Kinde, and that organization is linked to one or more connections.
There are a number of ways to manage auth at the organization level. This topic discusses access control for organizations with enterprise connections.
To manage organization access, you can set policies that restrict access to a list of allowed domains. You can also enable just-in-time (JIT) provisioning via allowed domains.
Open the relevant organization in Kinde and select Policies in the menu.
Select Allow org members to be auto-added.
Enter all the allowed domains in the Allowed domains list.
Enable JIT provisioning for all new organization members by selecting Auto-add users from allowed domains.
Select Save.
Here’s what happens:
When the org_code is passed to Kinde as part of the authentication url, the correct sign-in option is shown.
Kinde checks that users belong to one of the allowed domains before authorizing access.
The user joins the organization if the domain matches any of the allowed domains.
Because this check only happens during sign up, you can still separately add users with email domains which fall outside of this restriction. This can be useful if you wish to add contractors or auditors who may have email addresses not in the domain allowlist.