Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 500 when trying to use new blocklist feature #1236

Open
Sicaa opened this issue Aug 28, 2024 · 0 comments
Open

Error 500 when trying to use new blocklist feature #1236

Sicaa opened this issue Aug 28, 2024 · 0 comments

Comments

@Sicaa
Copy link

Sicaa commented Aug 28, 2024

Hi,

Symfony version : 5.4.42
PHP version : 8.2.6
Lexik bundle version : 2.21.0

I want to implement token invalidation so I followed this related documentation: https://github.com/lexik/LexikJWTAuthenticationBundle/blob/2.x/Resources/doc/10-invalidate-token.rst

Problem encoutered: when I add the blocklist_token configuration, all endpoints are returning an HTTP 500 error.

2024-08-28_14-13

Here is my lexik_jwt_authentication.yaml:

lexik_jwt_authentication:
    secret_key: '%env(resolve:JWT_SECRET_KEY)%'
    public_key: '%env(resolve:JWT_PUBLIC_KEY)%'
    pass_phrase: '%env(JWT_PASSPHRASE)%'
    token_ttl: 86400 # 1 day
    # invalidate the token on logout by storing it in the cache
    blocklist_token:
        enabled: true
        cache: cache.app

It seems that the problem is triggered by the service declaration (vendor\lexik\jwt-authentication-bundle\Resources\config\blocklist_token.xml):

2024-08-28_14-28

Any idea?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant