A PHP library to work with Firebase tokens
MIT License
Bot releases are hidden (Show)
Published by jeromegamez 11 months ago
Added support for PHP 8.3
Published by jeromegamez 11 months ago
Fixed ID Token verification when run in emulated environments.
Published by jeromegamez 11 months ago
Added support for PHP 8.3, removed support for PHP 8.1
Published by jeromegamez over 1 year ago
Added support for the Firebase Auth Emulator when using lcobucci/jwt
5.*
Note: The Kreait\Firebase\JWT\Token
class has been renamed to \Kreait\Firebase\JWT\SecureToken
. This is technically a breaking change, but since the *Verifier
classes type-hint \Kreait\Firebase\JWT\Contract\Token
as return values, I consider it unlikely that this should cause trouble for most people. If it does, I'll deal with the consequences.
Published by jeromegamez over 1 year ago
Added support for lcobucci/jwt
5.*
Published by jeromegamez almost 2 years ago
The most notable change is that you need PHP 8.1/8.2 to use the new version. The language migration to PHP 8.1 introduces potentially breaking changes concerning the strictness of parameter types - however, this should not affect your project in most cases (unless you have used internal classes directly or by extension).
Please see UPGRADE-4.0.md for detailed information.
Published by jeromegamez about 2 years ago
Ensured (PHPStan) compatibility with lcobucci/jwt
^4.2
Published by jeromegamez about 2 years ago
Dropped support for lcobucci/jwt
3.x
Published by jeromegamez about 2 years ago
Ensure compatibility with lcobucci/jwt
^4.2
Published by jeromegamez about 2 years ago
Ensure (PHPStan) compatibility with lcobucci/jwt
^4.2
Published by jeromegamez about 2 years ago
Ensure compatibility with lcobucci/jwt
^4.2
Published by jeromegamez over 2 years ago
Raised minimum version of Guzzle to address CVE-2022-31090 and CVE-2022-31091
Published by jeromegamez over 2 years ago
Raise minimum version of Guzzle to address CVE-2022-31042
Published by jeromegamez over 2 years ago
Implemented forward-compatible Clock-Interface
The stella-maris/clock package provides an interface based on the currently proposed status of PSR-20. Due to the inactivity of the PSR20 working group this is a way to already provide interoperability while still maintaining forward compatibility. When the current status of PSR20 will be released at one point in time the stella-maris/clock package will extend the PSR-20 interface so that this package becomes immeadiately PSR20 compatible without any further work necessary.
Published by jeromegamez over 2 years ago
firebase/php-jwt
dev dependency and simplified test token generation.If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏
Published by jeromegamez over 2 years ago
Added tenant support to Session Cookie Verification. It doesn't seem to be supported at the moment (executing it with a tenant-enabled Firebase project yields an UNSUPPORTED_TENANT_OPERATION
) error, but once it is supported, this library will need no or just minimal updates.
The Firebase Admin SDK for PHP has integration tests checking for this error so that we know early on when it starts working.
Published by jeromegamez over 2 years ago
Fixed method name Kreait\Firebase\JWT\SessionCookieVerifier::sessionCookieWithLeeway
to Kreait\Firebase\JWT\SessionCookieVerifier::verifySessionCookieWithLeeway
🤦. This is technically a breaking change, but since 2.1.0 was released just a few minutes ago, it was most certainly not used yet.
Published by jeromegamez over 2 years ago
Added Kreait\Firebase\JWT\SessionCookieVerifier
that works similarly as the existing ID Token verifier.
You can find its documentation in the README.