Reading/setting cookies from a guestworker

#1

Hello,

In the same way we can define a method of a guest worker that will act as an dynamic authprovider for crossbar, is there a way to read/set cookies from a guest worker (some kind of a websocket opener helper) ?

0 Likes

#2

Hello,

In the same way we can define a method of a guest worker that will act
as an dynamic authprovider for crossbar, is there a way to read/set
cookies from a guest worker (some kind of a websocket opener helper) ?

You can read cookies from the transport details provided to a dynamic authenticator.

You can't set cookies on WebSocket connections managed by Crossbar.io from outside Crossbar.io currently. Crossbar.io does have the ability to set cookies automatically though (so-called "cookie tracking"), and it will remember authentication info via cookies also.

···

Am 08.04.2015 um 17:56 schrieb Rejo:

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com
<mailto:autobahnws+...@googlegroups.com>.
To post to this group, send email to autob...@googlegroups.com
<mailto:autob...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/autobahnws/5dc668e7-e7e7-41d1-a3e9-76a188a1f737%40googlegroups.com
<https://groups.google.com/d/msgid/autobahnws/5dc668e7-e7e7-41d1-a3e9-76a188a1f737%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

0 Likes

#3

Thanks Tobias,

You can read cookies from the transport details provided to a dynamic
authenticator.

ok.

You can’t set cookies on WebSocket connections managed by Crossbar.io
from outside Crossbar.io currently. Crossbar.io does have the ability to
set cookies automatically though (so-called “cookie tracking”), and it
will remember authentication info via cookies also.

I’ve just realized that you can only write/change cookies during the initial websocket handshake, not after the websocket is established… So best way must be to ask the javascript client to create/modify/delete the cookies that will be sent back on the next connection attempt.

···

Le mercredi 8 avril 2015 22:56:22 UTC+2, Tobias Oberstein a écrit :

0 Likes

#4

Hello Tobias,

···

On Wednesday, April 8, 2015 at 10:56:22 PM UTC+2, Tobias Oberstein wrote:

You can read cookies from the transport details provided to a dynamic
authenticator.

I can’t see such details in the case of a “ticket” dynamic authentication :frowning:

The parameters are realm authid and ticket.

0 Likes

#5

Correct: https://github.com/crossbario/crossbar/issues/273

···

Am 09.04.2015 um 11:31 schrieb Rejo:

Hello Tobias,

On Wednesday, April 8, 2015 at 10:56:22 PM UTC+2, Tobias Oberstein wrote:

    You can read cookies from the transport details provided to a dynamic
    authenticator.

I can't see such details in the case of a "ticket" dynamic
authentication :frowning:
The parameters are realm authid and ticket.

0 Likes