Skip to content

Releases: portier/portier-php

v0.6.0

01 Dec 10:55
13f5625
Compare
Choose a tag to compare
  • BREAKING: This PR reverts the API change made to the verify method in v0.5.0:

    -public function verify(string $token): VerifyResult
    +public function verify(string $token): string

    v0.5.0 mistakenly assumed state was part of the token, but it is simply returned in a query parameter state to the callback / redirect URI. As such, your application can extract it directly from the request.

v0.5.0

29 Nov 18:46
d7e9362
Compare
Choose a tag to compare
  • Now supports lcobucci/jwt v5 in addition to v4.

  • Now supports lcobucci/clock v3 in addition to v2.

  • The authenticate method now takes an optional second argument $state, which is returned by verify in your callback:

    -public function authenticate(string $email): string
    +public function authenticate(string $email, string $state = null): string
  • BREAKING: The verify method now returns an object, so that it can also return the original $state from the call to authenticate:

    -public function verify(string $token): string
    +public function verify(string $token): VerifyResult

v0.4.2

21 Dec 14:00
51e2411
Compare
Choose a tag to compare

Changes

  • Fixes for PHP 8.1 support.

v0.4.1

05 May 15:31
dc89cc2
Compare
Choose a tag to compare

Changes

  • The Client::leeway property is now properly applied when validating tokens. This was previously not the case, resulting in zero leeway.
  • The authorization_endpoint from the discovery document is now properly applied, instead of hardcoding the /auth broker route. This means Client::authenticate() now does an external HTTP request, but caching should not change the overall amount of requests made by the client.

v0.4.0

12 Apr 12:05
d7ab597
Compare
Choose a tag to compare

Breaking changes

  • This version requires PHP 7.4 or 8.0.
  • Client::normalize() now takes a single string email address, instead of an array. This is because recent PHP versions have all the functionality required to do normalization locally, and we no longer have to fall back to calling the Portier broker HTTP API. The fallback code has been removed, as well as normalizeLocal and hasNormalizeLocal.
  • Function return types have been added to StoreInterface and AbstractStore. Custom store implementations may have to be adjusted to match, but this should not require any change in the implementation.

Other changes

  • All library dependencies have been upgraded

v0.3.0

16 Jul 12:58
96e7650
Compare
Choose a tag to compare
  • Dropped PHP 7.0 support.
  • Updated for recent Portier specification changes.
  • Added a local implementation of normalization for PHP 7.3 and up.
  • Upgrade PHPUnit to 7.5
  • Upgrade PHPStan to 0.11

v0.2.1

16 Jul 12:54
dcb7e07
Compare
Choose a tag to compare
  • Added a normalize helper method.
  • Upgrade to PHPStan 0.9.

v0.2.0

16 Jul 12:54
Compare
Choose a tag to compare
  • Added PHP 7.2 support.
  • Dropped PHP 5.6 support.
  • Now using PHPStan to check code.
  • Added typehints in various places.
  • Upgrade to phpasn1 2.0.

v0.1.1

16 Jul 12:52
Compare
Choose a tag to compare
  • Fix: Cache-Control can be Array
  • Fix: Older OpenSSL versions requiring PEM wrapping

v0.1.0

16 Jul 12:51
Compare
Choose a tag to compare

Initial release.