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

HubInterface and generated JWT token not working fine #56

Closed
GRUXXKi opened this issue May 21, 2021 · 1 comment
Closed

HubInterface and generated JWT token not working fine #56

GRUXXKi opened this issue May 21, 2021 · 1 comment

Comments

@GRUXXKi
Copy link

GRUXXKi commented May 21, 2021

Hi,

I've found that with the last mercure-bundle 0.3 and the last mercure server 0.11.3 there is an issue with the generated JWT token.

The generated token looks like :

{
  "exp": 1621589724.242307,
  "mercure": {
    "publish": [
      "*"
    ],
    "subscribe": []
  }
}

And mercure send a 401 error when trying to publish with it.

I've tryed the same token generated but with the removal of "exp": 1621589724.242307, and it worked just fine when publishing in the debug UI !

I haven't found yet how to remove it automatically , maybe somehting with LcobucciFactory to handle.

@chalasr
Copy link
Member

chalasr commented Oct 13, 2021

This has been fixed upstream (see dunglas/mercure#522).

@chalasr chalasr closed this as completed Oct 13, 2021
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

2 participants