Skip to content

Commit

Permalink
Merge pull request #110 from darthf1/patch-2
Browse files Browse the repository at this point in the history
fix: use Symfony PSR-6 > PSR-16 cache adapter
  • Loading branch information
evansims authored Mar 15, 2021
2 parents 00769c7 + 83b62bc commit 0efae3c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 332 deletions.
121 changes: 0 additions & 121 deletions Tests/Security/Helpers/Auth0Psr16AdapterTest.php

This file was deleted.

4 changes: 2 additions & 2 deletions src/Security/Auth0Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
use Auth0\SDK\Helpers\Tokens\TokenVerifier;
use Auth0\SDK\Exception\InvalidTokenException;
use Auth0\JWTAuthBundle\Security\Helpers\JwtValidations;
use Auth0\JWTAuthBundle\Security\Helpers\Auth0Psr16Adapter;
use Psr\Cache\CacheItemPoolInterface;
use Psr\SimpleCache\CacheInterface;
use Symfony\Component\Cache\Psr16Cache;

/**
* Service that provides access to the Auth0 SDK and JWT validation
Expand Down Expand Up @@ -127,7 +127,7 @@ public function __construct(
$this->issuer = 'https://'.$this->domain.'/';
$this->algorithm = (null !== $algorithm && mb_strtoupper($algorithm) === 'HS256') ? 'HS256' : 'RS256';
$this->validations = $validations ?? [];
$this->cache = $cache ? new Auth0Psr16Adapter($cache) : null;
$this->cache = $cache ? new Psr16Cache($cache) : null;

if (null !== $authorizedIssuer && strlen($authorizedIssuer)) {
$this->issuer = $authorizedIssuer;
Expand Down
209 changes: 0 additions & 209 deletions src/Security/Helpers/Auth0Psr16Adapter.php

This file was deleted.

0 comments on commit 0efae3c

Please sign in to comment.