Security & Validations
Apply input validation and context-specific escaping. Find guides for password handling, CSRF protection, content security policies, JWT, TOTP, and rate limiting.
Table of Contents
- Content Security Policy
Luminova’s Content Security Policy guide covers resource directives, nonces and hashes for inline code, and violation reporting.
- Cross-Site Request Forgery (CSRF) Protection
Luminova’s CSRF protection for form submissions and browser requests authenticated by cookies, including token generation, storage, and validation.
- Input Escaping & Sanitization
Context-specific escaping in Luminova for HTML text, HTML attributes, JavaScript, CSS, and URL components.
- String-Based Input Validation Rules
Luminova’s string-based validation rules, including how to combine checks, pass arguments, and customize error messages.
- Rule-Based Input Data Validation
Field validation in Luminova for request data and arrays, including rule definitions, custom checks, and field-level errors.
- Class-Based Input Validation Rules
Fluent validation rules in Luminova for field types, ranges, formats, and custom checks, with arguments and error messages.
- Sign and Validate JWT
JSON Web Token signing and validation in Luminova, including key configuration, token claims, and optional server-side storage.
- Secure Password Handling and Verification
Password hashing, verification, and rehashing in Luminova, with helpers for strength checks and checking for known breaches.
- Rate Limiter and Request Throttling
Cache-backed rate limiting in Luminova for applications, controllers, and routes, with quota headers and retry timing.
- Time-Based One-Time Password Authenticator
Time-based one-time password setup and verification in Luminova, including authenticator secrets and enrollment QR codes.
- Time-Based One-Time Password: Google Authenticator Client
Luminova’s Google Authenticator-compatible TOTP client, including secret generation, enrollment URLs, code verification, and optional caching.