-
The following config options have been deprecated and will be removed in 3.0:
-
private_key_path: Replaced bysecret_keywhich accepts a raw key (string) as value or a file path. -
public_key_path: Replaced bypublic_keywhich 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/joselibrary (see below). As such, OpenSSL will remain the only supported crypto engine.
-
-
Only one of
public_keyandsecret_keyis 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
DefaultJWTEncoderclass and the correspondinglexik_jwt_authentication.encoder.defaultservice 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.serviceconfiguration key tolexik_jwt_authentication.encoder.lcobuccior 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.