Authentication Methods
Sorcia supports multiple authentication methods:Email & Password
- Hashing: bcrypt with salt
- Minimum length: 8 characters
- Complexity: Enforced in UI
- Breached passwords: Checked against known breaches
Magic Links
- Time-limited: 1-hour expiration
- Single-use: Cannot be reused
- Signed: HMAC signature verification
OAuth (Enterprise)
- Google - Workspace accounts
- Microsoft - Azure AD
- GitHub - Organization SSO
SAML/OIDC (Enterprise)
- Custom IdP - Your identity provider
- Just-in-Time - Auto-provision users
- Group Mapping - Sync permission groups
Session Management
JWT Tokens
- Expiration: 1 hour
- Refresh: Via refresh token
- Revocation: Token blacklist
- Storage: httpOnly cookies (web)
Refresh Tokens
- Long-lived: 30 days
- Rotation: New token on each use
- Revokable: Can be invalidated
Multi-Factor Authentication (MFA)
Enable MFA for enhanced security:API Authentication
API Keys
- SHA-256 hashed
- Prefix identifies environment
- Can be revoked anytime
Bearer Tokens
- JWT with signature verification
- Short-lived (1 hour)
- Automatic refresh
Security Best Practices
Use Strong Passwords
Use Strong Passwords
- Minimum 12 characters
- Mix of uppercase, lowercase, numbers, symbols
- Unique to Sorcia (not reused)
Enable MFA
Enable MFA
- Required for admins and owners
- Recommended for all users
- Use authenticator app, not SMS
Rotate API Keys
Rotate API Keys
- Rotate quarterly
- Rotate after team member departure
- Never commit to version control
Monitor Sessions
Monitor Sessions
- Review active sessions regularly
- Revoke unknown sessions
- Log out from shared devices
Session Security
Active Sessions
View and manage: Settings → Security → Active Sessions Each session shows:- Device/browser
- Location (IP-based)
- Last activity
- Revoke option
Automatic Logout
Sessions automatically expire:- Inactivity: 7 days
- Absolute: 30 days
- Token expiry: 1 hour (refresh extends)
Password Security
Password Requirements
- Minimum 8 characters
- At least one uppercase letter
- At least one number
- Cannot be common password
- Cannot be in breach database
Password Reset
Security:
- Reset links expire in 1 hour
- Previous password cannot be reused
- All sessions invalidated on reset
Next Steps
Row-Level Security
Learn about database security