Single Sign-On (SSO)
SSO is available on Pro and Enterprise plans.
Supported Providers
- SAML 2.0 - Okta, OneLogin, Azure AD, etc.
- OAuth 2.0 - Google Workspace, GitHub, etc.
- OIDC - Any OpenID Connect provider
SAML Configuration
1. Create SAML App
In your identity provider:- Create a new SAML application
- Set ACS URL:
https://brainzlab.ai/auth/saml/callback - Set Entity ID:
https://brainzlab.ai - Configure attributes:
- email (required)
- name (optional)
2. Configure Brainz Lab
- Go to Settings > SSO
- Choose “SAML 2.0”
- Enter:
- SSO URL
- Certificate
- Entity ID
3. Test
Click “Test Configuration” to verify setup.OAuth Configuration
Google Workspace
- Go to Google Admin Console
- Create OAuth credentials
- Set redirect URL:
https://brainzlab.ai/auth/google/callback - Enter Client ID and Secret in Brainz Lab
GitHub
- Create GitHub OAuth App
- Set callback URL:
https://brainzlab.ai/auth/github/callback - Enter Client ID and Secret in Brainz Lab
Enforcing SSO
After setup, you can:- Require SSO - All users must use SSO
- Allow both - SSO and password login
- Migrate gradually - Invite users via SSO
Just-in-Time Provisioning
New users are automatically created on first SSO login:- Email from identity provider
- Default role: Member
- Added to organization
SCIM Provisioning
SCIM is available on Enterprise plans.
- Enable SCIM in Settings > SSO
- Copy the SCIM endpoint and token
- Configure in your identity provider
Troubleshooting
Login Failed
- Check SSO configuration
- Verify user exists in identity provider
- Check attribute mapping
User Not Provisioned
- Verify JIT provisioning is enabled
- Check required attributes are mapped
- Verify domain is allowed