Skip to content

Releases: linna/csrf-guard

v2.0.0

11 Feb 08:50
Compare
Choose a tag to compare

New on this version

Added

  • Linna\CsrfGuard\Exception namespace
  • Linna\CsrfGuard\Exception\BadExpireException exception
  • Linna\CsrfGuard\Exception\BadStorageSizeException exception
  • Linna\CsrfGuard\Exception\BadTokenLenghtException exception
  • Linna\CsrfGuard\Exception\BadExpireTrait trait
  • Linna\CsrfGuard\Exception\BadStorageSizeTrait trait
  • Linna\CsrfGuard\Exception\BadTokenLenghtTrait trait
  • Linna\CsrfGuard\Exception\ExceptionBoundary class
  • Linna\CsrfGuard\Exception\SessionNotStartedException exception
  • Linna\CsrfGuard\Exception\SessionNotStartedTrait trait
  • Linna\CsrfGuard\ProviderSimpleFactory class
  • Linna\CsrfGuard\Provider namespace
  • Linna\CsrfGuard\Provider\EncryptionTokenProvider class
  • Linna\CsrfGuard\Provider\HmacTokenProvider class
  • Linna\CsrfGuard\Provider\SynchronizerTokenProvider class
  • Linna\CsrfGuard\Provider\TokenProviderInterface interface

Changed

  • namespace of the packet is now Linna\CsrfGuard

Removed

  • Linna\CsrfGuard class

v1.4.0

28 Nov 12:04
Compare
Choose a tag to compare

New on this version

Added

  • PHP 8.0 support

Changed

  • getTimedToken() now $ttl parameter has a default value of 600 (seconds)
  • cleanStorage() now $preserve parameter has a default value of 0 (clean all)
  • Minor code optimization
  • Minimun PHP version: 7.4

Call getTimedToken() without parameters, return a timed token that expires in 10 minutes.
Call cleanStorage() without parameters, delete all tokens in session storage, it doesn't preserve any token.

Changelog File

For more information read the full Changelog until now.

More info about 1.x version

This is the last release for the 1.x branch, I am still working on the 2.x version of the "guard" to offer more types of tokens and to be more compliant with the CSRF Owasp Cheat Sheet

v.1.3.2

11 Feb 07:31
Compare
Choose a tag to compare

New on this version

Added

  • backslash in front of native functions
  • PHP 7.3 support

For more information read the full Changelog until now.

v1.3.1

26 Aug 20:12
Compare
Choose a tag to compare

New on this version

Changed

  • RuntimeException message for instance created without start session
  • Tests updated as Issue #10

For more information read the full Changelog until now.

v1.3.0

25 Aug 17:42
Compare
Choose a tag to compare

New on this version

Changed

  • Tests updated

Added

  • Token storage clean system as Issue #9
  • garbageCollector() method as part of token storage clean system
  • clean() method as part of token storage clean system

For more information read the full Changelog until now.

v1.2.0

13 Aug 13:56
Compare
Choose a tag to compare

New on this version

Changed

  • Minimun PHP version: 7.1
  • Enhance generating token from Pull Request #7
  • Tests updated

Removed

  • getHiddenInput() method

For more information read the full Changelog until now.

v1.1.2

08 Sep 19:27
Compare
Choose a tag to compare

Please read the changelog

v1.1.1

21 Aug 20:17
Compare
Choose a tag to compare

Please read the changelog

v1.1.0

21 Aug 18:43
Compare
Choose a tag to compare

Please read the changelog

v1.0.0

26 Jul 15:02
Compare
Choose a tag to compare

Please read the changelog