SOKRIYO operates a compliance-first identity infrastructure designed to protect end users, connected applications, and regulated businesses.
1. Country-Aware KYC & Document Rules
- Required government identification types, formatting rules, and business license requirements are mapped dynamically per country.
- Submitted verification files are persisted to private, access-controlled storage (
/files/private/...) and are never exposed on public URLs.
2. Application Observation & Auto-Escalation
- Connected applications may be placed in Observation Mode, recording token and UserInfo events for compliance review.
- If an application exceeds its configured hourly observation threshold, it is automatically escalated to
under_reviewand logged in the audit trail.
3. Role-Based Duty Segregation & Audit Trails
- Administrative panel operators operate under granular RBAC duty permissions (separate scopes for users, businesses, apps, countries, settings, and activity logs).
- Every approval, rejection, scope restriction, hold, impersonation, and document decision is recorded in immutable
ActivityLogrecords with actor, target, and metadata references.
4. Session Revocation & Token Lifecycle
- Access tokens are short-lived and signed asymmetrically (
RS256/EdDSA). - Refresh tokens are hashed with SHA-256 and rotated on every single use; reuse or revocation immediately invalidates the token.
- Revoked user sessions are enforced on every request by
EnsureSessionNotRevokedmiddleware.