1 | <?php |
||
24 | class JwtAuthenticator implements AuthenticatorInterface |
||
25 | { |
||
26 | private const ALGORITHM = 'ES256'; |
||
27 | |||
28 | /** |
||
29 | * @var JwtInterface |
||
30 | */ |
||
31 | private $jwt; |
||
32 | |||
33 | /** |
||
34 | * Constructor. |
||
35 | * |
||
36 | * @param JwtInterface $jwt |
||
37 | */ |
||
38 | public function __construct(JwtInterface $jwt) |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function authenticate(Request $request): Request |
||
54 | |||
55 | /** |
||
56 | * Create the content of JWS by Json Web Token |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | private function createJwsContent(): string |
||
84 | } |
||
85 |