-
Is it possible for a pure HTTP REST client (that uses Crossbar's HTTP bridge feature) to authenticate on Crossbar without having to first connect via Websocket to obtain the authentication cookie? All I could find in the docs (now only available via RST files in the repo) is the following under Cookie-Authentication.rst:
As a workaround, I was thinking that the web app could provide a special Full disclosure: I don't actually need this feature. I'm at the point in my CppWAMP router development where I want to implement a bare bones HTTP server for serving static files, and I'm thinking ahead about the possibility of adding a REST interface similar to Crossbar's HTTP bridge feature. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Found this blog post about securely storing JWTs, and I think it could be applied to my proposed Edit: The in-memory JWT storage scheme proposed in that blog wouldn't work, because Crossbar is expecting the authentication token in the HTTP Cookie header, and not in the HTTP Authorization header. The browser would have to manually set the authentication token as a cookie after receiving it from the |
Beta Was this translation helpful? Give feedback.
-
Hi @ecorm, sorry for sluggish response .. I missed that. authentication of REST bridge: no, that's not there, pls see #1205 independent of authentication of HTTP requests to the bridge, what is there is signed bridge requests. pls see crossbar/crossbar/bridge/rest/common.py Line 116 in 03d7057 crossbar/crossbar/bridge/rest/common.py Line 455 in 03d7057 "all" REST bridge examples are:
one last thing if I may kindly ask: could you verify/ack that what I wrote in 2. in the following comment is really correct rgd the spec? |
Beta Was this translation helpful? Give feedback.
Hi @ecorm, sorry for sluggish response .. I missed that.
authentication of REST bridge: no, that's not there, pls see #1205
independent of authentication of HTTP requests to the bridge, what is there is signed bridge requests. pls see
https://github.com/crossbario/crossbar-examples/blob/aa31d9fe3abcb4b797931356b5a2ceeac64229c3/rest/publisher/.crossbar/config.json#L57
https://github.com/crossbario/crossbar-examples/blob/aa31d9fe3abcb4b797931356b5a2ceeac64229c3/rest/caller/.crossbar/config.json#L61
crossbar/crossbar/bridge/rest/common.py
Line 116 in 03d7057
crossbar/crossbar/bridge/rest/common.py
Line 455 in 03d7057