【发布时间】:2020-04-06 01:29:56
【问题描述】:
我尝试使用 LexikJWTAuthentication 设置登录身份验证,我已经生成了必要的密钥
这是怎么称呼的
config/packages/lexik_jwt_authentication.yaml
lexik_jwt_authentication:
secret_key:'%kernel.project_dir%/config/jwt/private.pem' # required for token creation
public_key:'%kernel.project_dir%/config/jwt/public.pem' # required for token verification
pass_phrase:'mafdhklkjkn234kas' # required for token creation, usage of an environment variable is recommended
token_ttl: 3600
这是我尝试登录时的返回,我使用了邮递员
这里是vendor/lexik/jwt-authentication-bundle/DependencyInjection/LexikJWTAuthenticationExtension.php中config的var_dump
【问题讨论】:
-
您确定没有在某处覆盖
lexik_jwt_authentication吗?显示你的 bundles.php -
你清除缓存了吗?
-
@LuninRoman 刚刚添加
-
@AlexandreTranchant 是的,我已经这样做了
标签: symfony lexikjwtauthbundle