The ACE readme claims that using the handlebars helper {{token}} I can get access to a JWT which I can then use to secure calls from the iFrame to my server. However this doesn't seem to work as intended. Using the method provided for REST calls:
beforeSend: function (request) {
request.setRequestHeader("Authorization", "JWT {{token}}");
}
I get a token not containing a qsh claim, which the server complain about. On the server side I get the following error:
Authentication verification error: 401 JWT claim did not contain the query string hash (qsh) claim
Which obviously is true, having verified the content using
https://jwt.io
Now my question is, am I supposed to populate the token with my own claims? If so, then specifying that in the documentation would be nice, from what I understand the token can be used as provided. If not then I guess I should report a bug concerning this.