What is SSO?
Single Sign-On (SSO) lets employees use their corporate credentials to login to Reclamia. No separate passwords.Keycloak Overview
Keycloak is the identity provider (IdP) that manages:- User accounts and passwords
- Role assignments
- Organization management
- Token generation
- Authentication policies
Keycloak Admin Console
Access:https://api.64.226.86.247.sslip.io/keycloak
User Management in Keycloak
Creating Users
- Realms → Select your realm
- Users → Create new user
- Fill in username, email, name
- Set temporary password
- Assign realm roles
- User receives email invitation
Assigning Roles
- User → Role Mapping
- Available roles: admin, manager, employee
- Add roles to user
- Roles sync to Reclamia on next login
Managing Organizations
Organizations created during signup:- Available in Keycloak realms
- Users belong to organization
- Reclamia syncs organization data
Syncing Roles to Reclamia
Automatic process:- User has role in Keycloak
- User logs in
- JWT token includes role
- Kong Gateway validates JWT
- Kong injects X-User-Roles header
- Backend reads header and syncs role
Configuration
Keycloak Settings
Environment variables (if self-hosted):Frontend Configuration
Auth Service URL points to Keycloak:- Signup:
/auth/signup - Login:
/auth/login - Token refresh:
/auth/refresh
Troubleshooting
Can’t login?- Check Keycloak is running
- Verify user exists in Keycloak
- Check user is active (not disabled)
- Logout and login again
- Check role assigned in Keycloak
- Wait a few seconds for sync