Security Built Into Every Token, Session & Scope
SOKRIYO · One Profile enforces defense-in-depth across passwordless FIDO2 authentication, sender-constrained OAuth 2.1 tokens, private KYC vaults, and real-time scope governance.
Protocol-Level Defense
Six Layers of Cryptographic & Operational Protection
Cryptographic Token Signing
Asymmetric keypairs sign every ID and access token, published at /oauth/jwks for zero-secret verification and clean key rotation.
Sender-Constrained Tokens
Cryptographically bind tokens to client keys (RFC 9449 DPoP) or X.509 certificates (RFC 8705 mTLS) alongside strict S256 PKCE.
Phishing-Resistant MFA
FIDO2 Passkey assertions verify origin, RP ID, challenge, Ed25519/ECDSA signatures, and sign-count rollback protection.
Single-Use Refresh Rotation
Every refresh_token is hashed with SHA-256, valid for a single rotation, and immediately revocable via /oauth/revoke or user dashboard.
Granular Scope & Claim Governance
Block, decline, or place individual OAuth scopes under review, mask sensitive user claims, and auto-escalate high-volume observation traffic.
Private Vault & Duty Audit
KYC and business documents live in private non-public storage; admin duties and user logins are logged immutably with actor & target IDs.
Session & Token Hygiene
Real-Time Session Revocation & App Controls
- • Server-side
EnsureSessionNotRevokedmiddleware invalidates revoked sessions immediately. - • Users can inspect active devices, revoke authorized apps, and rotate Passkeys or TOTP anytime.
- • Rate-limited
throttle:auth,throttle:otp, andthrottle:oauth_tokenguards.
Governance & Accountability
Scoped Admin Duties & Immutable Audit References
- • Panel operators are assigned granular RBAC permissions rather than blanket super-admin access.
- • Temporary or hard compliance holds trigger guided document resubmission workflows.
- • Every approval, block, scope change, and impersonation event writes an immutable
ActivityLogentry.