OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
kreait
/
firebase-tokens
/
tests
/
Firebase
/
Auth
/
Token
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/12/2024 10:36:29 AM
rwxr-xr-x
📁
Cache
-
08/12/2024 10:36:42 AM
rwxr-xr-x
📄
GeneratorTest.php
1.87 KB
08/12/2024 10:36:30 AM
rw-r--r--
📄
HttpKeyStoreTest.php
1.66 KB
08/12/2024 10:36:30 AM
rw-r--r--
📄
TenantAwareGeneratorTest.php
2.33 KB
08/12/2024 10:36:30 AM
rw-r--r--
📄
TenantAwareVerifierTest.php
2.46 KB
08/12/2024 10:36:30 AM
rw-r--r--
📄
TestCase.php
1010 bytes
08/12/2024 10:36:30 AM
rw-r--r--
📁
Util
-
08/12/2024 10:36:42 AM
rwxr-xr-x
📄
VerifierTest.php
5.32 KB
08/12/2024 10:36:30 AM
rw-r--r--
Editing: TestCase.php
Close
<?php declare(strict_types=1); namespace Firebase\Auth\Token\Tests; use Firebase\Auth\Token\Domain\KeyStore; use Firebase\Auth\Token\Tests\Util\ArrayKeyStore; use Lcobucci\JWT\Configuration; use Lcobucci\JWT\Signer\Key; use Lcobucci\JWT\Signer\Key\LocalFileReference; use Lcobucci\JWT\Signer\Rsa\Sha256; /** * @internal */ class TestCase extends \PHPUnit\Framework\TestCase { protected function onePrivateKey(): Key { return LocalFileReference::file(__DIR__.'/../../../_fixtures/one.key'); } protected function onePublicKey(): Key { return LocalFileReference::file(__DIR__.'/../../../_fixtures/one.pub'); } protected function createJwtConfiguration(): Configuration { return Configuration::forSymmetricSigner(new Sha256(), $this->onePrivateKey()); } protected function createKeyStore(): KeyStore { return new ArrayKeyStore(['valid_key_id' => $this->onePublicKey()->contents()]); } }