Skip to content

Just-in-time provisioning

Just-in-time (JIT) provisioning automatically creates users and organization memberships when they sign in through SSO for the first time. This feature allows users to access your application without requiring manual invitations from IT administrators. For example, users don’t need to remember separate credentials or go through additional signup steps - they just sign in through their familiar SSO portal. Your app signs them up instantly.

JIT provisioning is particularly useful for enterprise customers who want to provide seamless access to your application for their employees while maintaining security and control through their identity provider.

When a user signs in through SSO for the first time, Scalekit automatically:

  1. Detects the verified domain - Scalekit checks if the user’s email domain matches a verified domain in the organization
  2. Creates the user account - A new user profile is created using information from the identity provider
  3. Establishes membership - The user is automatically added as a member of the organization
  4. Completes authentication - The user is signed in and redirected to your application

This process happens seamlessly in the background, providing immediate access without manual intervention.

JIT provisioning must be enabled for each organization that wants to use this feature. You can enable it through the Scalekit Dashboard or programmatically using the API.

Enable via Dashboard Coming soon

Section titled “Enable via Dashboard ”
  1. Log in to your Scalekit Dashboard.
  2. Navigate to Organizations and select the organization.
  3. Go to Settings and find the JIT Provisioning section.
  4. Toggle the setting to enable JIT provisioning for this organization.

You can also enable JIT provisioning programmatically using the Scalekit API:

npm install @scalekit-sdk/node

Enable JIT provisioning
// Coming soon - API to enable JIT provisioning

JIT provisioning only works for users whose email domains have been verified by the organization. This ensures that only legitimate members of the organization can automatically gain access to your application.

Organization admins can verify domains through the admin portal. Once verified, any user with an email address from that domain can use JIT provisioning when signing in through SSO.

JIT provisioning has limitations for guest users whose email domains have not been verified by the organization:

  • Contractors and external users with unverified email domains cannot use JIT provisioning
  • These users must be manually invited to join the organization before they can sign in through SSO
  • This ensures security by preventing unauthorized users from automatically gaining access