Prerequisites
- Okta admin access
- Lovable workspace Owner or Admin
Configure in Okta
1
Create a SAML 2.0 app
Okta Admin → Applications → Create App Integration → SAML 2.0.
2
Single sign-on settings
Set:
- Single sign on URL (ACS): https://auth.lovable.dev/\_\_/auth/handler
- Audience URI (SP Entity ID): https://auth.lovable.dev/\_\_/auth/handler
3
Attribute Statements
Add:
- Name:
email→ Value:user.email - Name:
display_name→ Value:user.firstName+user.lastNameoruser.displayName
4
Assignments
Assign the application to required users/groups.
5
Download metadata (optional)
Use metadata for verification if needed. Copy SAML values to Lovable if prompted.
Reference
- ACS URL: https://auth.lovable.dev/\_\_/auth/handler
- Audience/Entity ID: https://auth.lovable.dev/\_\_/auth/handler
- Required attributes:
email,display_name
Troubleshooting
Invalid Audience or ACS
Invalid Audience or ACS
Ensure both ACS and Audience match https://auth.lovable.dev/\_\_/auth/handler.
Missing attributes
Missing attributes
Verify Attribute Statements include
email and display_name.