小编Rom*_*CIA的帖子

Trying to get a token not currently working

I am trying to put a JWT Auth to access my API : /api/docs But I am currently getting an error while trying to get the token with this command :

curl -X POST -H "Content-Type: application/json" http://localhost/login_check -d '{"username":"johndoe","password":"test"}'
Run Code Online (Sandbox Code Playgroud)

Of course I replace username and password

Signature key "/var/www/config/jwt/private.pem" does not exist or is not readable. Did you correctly set the "lexik_jwt_authentication.signature_key" configuration key? (500 Internal Server Error)

security.yaml

    firewalls:
        login:
            pattern:  ^/login
            stateless: true
            anonymous: true
            provider: fos_userbundle_2 …
Run Code Online (Sandbox Code Playgroud)

token symfony jwt api-platform.com

1
推荐指数
1
解决办法
1956
查看次数

标签 统计

api-platform.com ×1

jwt ×1

symfony ×1

token ×1