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

JWT Middleware accepts expired tokens #783

Closed
kalmarz opened this issue Mar 6, 2023 · 1 comment · Fixed by #793
Closed

JWT Middleware accepts expired tokens #783

kalmarz opened this issue Mar 6, 2023 · 1 comment · Fixed by #793
Labels

Comments

@kalmarz
Copy link

kalmarz commented Mar 6, 2023

Hi,

I can't rule out that I might be missing something in the config but I don't know what it is. Prestd (v1.2.2 in this case but so behaved v1.1.5 similarly) is working perfectly fine with expired JWT tokens too. So having a token is for life. The env vars I altered:

PREST_JWT_KEY=...
PREST_AUTH_TYPE=basic
PREST_DEBUG=false
PREST_AUTH_ENABLED=true
DATABASE_URL=postgres://...

Let me know if additional info needed. Any guidance would be greatly appreciated.

@arxdsilva
Copy link
Member

Hi @kalmarz, thanks for reporting, this is a known issue, we want to solve it in the next patch, but we also got some problems that might line before this.

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

Successfully merging a pull request may close this issue.

2 participants