Commit bbe2e90
committed
minor #11888 Fixed subscribe JWT claim parameter (dekamaru)
This PR was submitted for the 4.3 branch but it was merged into the 4.2 branch instead (closes #11888).
Discussion
----------
Fixed subscribe JWT claim parameter
If you follow current guide and set claim mercure `subscribe` with single string - you get following error from mercure: `json: cannot unmarshal string into Go struct field mercureClaim.subscribe of type []string`
Subscribe parameter is array, not single string.
You can verfiy it by decoding JWT in these official examples:
1. https://github.com/dunglas/mercure/blob/master/examples/publisher-php.php
2. https://github.com/dunglas/mercure/blob/master/hub/authorization_test.go
Commits
-------
c089b6e Fixed subscribe claim parameter set1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| |||
0 commit comments