We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Any idea why mercure returns 401 when publisher field private is set to true?
With false works just fine.
The text was updated successfully, but these errors were encountered:
Hello @ArensMyzyri
This problem is probably because you didn't see the topic name in your JWT token.
assuming $topic->getTopicName() returns foo, your JWT token content should look something like {"mercure": {"publish": ["foo"]}}
$topic->getTopicName()
foo
{"mercure": {"publish": ["foo"]}}
If you wish to be able to publish to all topics, you can set "publish" list to ["*"].
"publish"
["*"]
you can read more about mercure authorization here: https://symfony.com/doc/current/mercure.html#authorization
can you please confirm that this is the case?
Sorry, something went wrong.
Closing due to the lack of feedback.
No branches or pull requests
Any idea why mercure returns 401 when publisher field private is set to true?
![image](https://user-images.githubusercontent.com/22968942/108605090-4261a300-73b2-11eb-92cd-42ce07297292.png)
With false works just fine.
The text was updated successfully, but these errors were encountered: