eclipse-thingweb / node-wot

A fast and extensible framework to connect any device with your browser and backend applications
https://thingweb.io
Other
166 stars 80 forks source link

Setting cookie from Response Header Set-Cookie #1242

Open hasanheroglu opened 9 months ago

hasanheroglu commented 9 months ago

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",
egekorkan commented 9 months ago

Just some small clarifications:

danielpeintner commented 9 months ago

In case there are no problems with this kind of logic, I can implement it.

Did you already experiment/test it with node-wot? I am curious to see what would need to change...

egekorkan commented 9 months ago

I am curious to see what would need to change

Only binding-http should be affected, I think