-
The following config options have been deprecated and will be removed in 3.0:
-
private_key_path
: Replaced bysecret_key
which accepts a raw key (string) as value or a file path. -
public_key_path
: Replaced bypublic_key
which accepts a raw key (string) as value or a file path. -
encoder.crypto_engine
: Support for using PHPSecLib will be removed in 3.0 along with the dependency to thenamshi/jose
library (see below). As such, OpenSSL will remain the only supported crypto engine.
-
-
Only one of
public_key
andsecret_key
is required, which makes it possible for a server to be the unique secret key holder thus the only part being able to deliver tokens. Clients can just hold the public key only for token verification.
-
The
DefaultJWTEncoder
class and the correspondinglexik_jwt_authentication.encoder.default
service have been deprecated. It is based on the namshi/jose library which itself is deprecated. The bundle now uses the lcobucci/jwt library as default JOSE library. Set theencoder.service
configuration key tolexik_jwt_authentication.encoder.lcobucci
or omit it instead (relying on the default value).We highly recommend to upgrade as early as possible since the namshi/jose library might contain known security issues as time goes by.