I went through the documentation and found:
mqServer.RegisterHandler<SendMailTest>(m =>
{
var req = new BasicRequest { Verb = HttpMethods.Post };
req.Headers["X-ss-id"] = m.GetBody().SessionId;
var response = ExecuteMessage(m, req);
return response;
});
I do a POST
via Postman of http://localhost:5000/json/oneway/SendMailTest
with an Authorization
header with a bearer token.
The service is secured, hence when I do not use the Authorization
header I get a correct 401.
But the SessionId is not filled in automatically. The property of the IHasSessionId
interface is on the object, but do I have to fill this my self? How can I know this from f.e. a Postman session?
Is there something I am missing here?