I
Irfan
Guest
In my WebHandler, I am able to return Authorization header. This is the code in my Webhandler where I am trying to return a JWT token oHeader = NEW OpenEdge.Net.HTTP.HttpHeader('Authorization','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ'). ASSIGN oResponse:Entity = oBody /* HTTP messages require a content type */ oResponse:ContentType = 'text/plain':u /* ContentLength is good too */ oResponse:ContentLength = oBody:Size . oResponse:SetHeader(oHeader). I get that back when I invoke the WebHandler curl http://localhost:3940/web/test -v * About to connect() to localhost port 3940 * Trying 127.0.0.1... connected * Connected to localhost (127.0.0.1) port 3940 > GET /web/test HTTP/1.1 > User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 > Host: localhost:3940 > Accept: */* > ) whose value can be passed in the Authorization header for the HTTP request.
Continue reading...
Continue reading...