Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

filemtime error #7

Open
Jcs1994 opened this issue Dec 11, 2020 · 0 comments
Open

filemtime error #7

Jcs1994 opened this issue Dec 11, 2020 · 0 comments

Comments

@Jcs1994
Copy link

Jcs1994 commented Dec 11, 2020

Hi
i'm trying to verify a token using this documentation https://auth0.com/docs/quickstart/backend/php
but I get an error with filemtime (I'm on a php docker container).

I don't understand why I get that error ? the folder cache has all permissions

          $cacheHandler = new FileCache('./cache', 600, 0777, 0777);
          $token_issuer = 'https://' . getenv('AUTH0_DOMAIN') . '/';
          $audience = getenv('AUTH0_AUDIENCE');
          $jwksUri = $token_issuer . '.well-known/jwks.json';

          $jwksFetcher = new JWKFetcher($cacheHandler, ['base_uri' => $jwksUri]);
          $sigVerifier = new AsymmetricVerifier($jwksFetcher);
          $tokenVerifier = new TokenVerifier($token_issuer, $audience, $sigVerifier);

          $this->tokenInfo = $tokenVerifier->verify($this->token); // error

ERROR: Type: ErrorException; Message: filemtime(): stat failed for /var/www/html/cache/8/C/17c2f21a0d8a2cd6390573cd2b18a249fd508ba68a173de85e871174f9b487; File: /var/www/html/vendor/kodus/file-cache/src/FileCache.php; Line: 81; [] []

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant