node-wot icon indicating copy to clipboard operation
node-wot copied to clipboard

Setting cookie from Response Header Set-Cookie

Open hasanheroglu opened this issue 1 year ago • 3 comments

Me and @egekorkan encountered with a case where we need to send session information to interact with a Thing. Therefore we thought, the token can be sent as a cookie, when security scheme is defined as below. In case there are no problems with this kind of logic, I can implement it.

"securityDefinitions": {
    "bearer1": {
      "scheme": "bearer",
      "in": "cookie",
      "name": "session_name"
    }
  },
"security":` "bearer1",

hasanheroglu avatar Feb 16 '24 12:02 hasanheroglu