-
Hi, I was trying to implements private updates with alternate topics as mentioned in the documentation, but without success. I'm trying to do the "Subscribers" part of the "Authorization" documentation ( https://mercure.rocks/spec#authorization ) When I do, with mercure in debug mode, I receive no update and in logs I have the following statement : (Note I'm using current last version of mercure: v0.11.2) {
"level": "debug",
"ts": 1619447991.06735,
"logger": "http.handlers.mercure",
"msg": "Subscriber not authorized to receive this update",
"subscriber": {
"id": "urn:uuid:41b12f2d-1d92-438f-be5e-43a534158caf",
"last_event_id": "",
"remote_addr": "172.22.0.1:33614",
"topic_selectors": [
"https://example.com/users/foo/{?topic}"
],
"topics": [
"https://example.com/books/{id}"
]
},
"update": {
"id": "urn:uuid:82b6cc3a-c202-491b-845a-041a1b29955d",
"type": "",
"retry": 0,
"topics": [
"https://example.com/books/1",
"https://example.com/users/foo/?topic=https://example.com/books/1"
],
"private": true,
"data": ""
}
} Is there a bug in Mercure with this kind of use or am I doing something wrong ? Thanks for your help ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Finally, there was probably a missing |
Beta Was this translation helpful? Give feedback.
Finally, there was probably a missing
/
in one of my topics. So everything works fine.