Saltar al contenido principal

· 6 min de lectura
Loïc Poullain

Banner

This article presents the improvements to the session system in FoalTS version 2.

The new syntax can be used either with cookies or with the Authorization header. It adds the following new features:

  • query all sessions of a given user
  • query all connected users
  • force logout of a specific user
  • flash sessions
  • session ID regeneration
  • anonymous and authenticated sessions

FoalTS also simplifies stateful CSRF protection so that all it takes is one setting to enable it.

· 4 min de lectura
Loïc Poullain

Banner

This article presents some improvements introduced in version 2 of FoalTS:

  • the JWT utilities to manage secrets and RSA keys,
  • the JWT utilities to manage cookies,
  • and the new stateless CSRF protection.

· 6 min de lectura
Loïc Poullain

Banner

This article presents some improvements introduced in version 2 of FoalTS:

  • Configuration and type safety
  • Configuration and .env files (.env, .env.test, etc)
  • Available configuration file formats (JSON, YAML and JS)
  • OpenAPI schemas and validation