crossbario / crossbar

Crossbar.io - WAMP application router
https://crossbar.io/
Other
2.05k stars 274 forks source link

Forward proxy frontend transport details in backend authextra #2004

Closed oberstet closed 2 years ago

oberstet commented 2 years ago

Once a proxy frontend session from a connecting client is established, some details of the already accepted frontend session and transport are stored

https://github.com/crossbario/crossbar/blob/8521972e03e20b56193046343a9f5209ac81ac5c/crossbar/worker/proxy.py#L198

and later picked up again

https://github.com/crossbario/crossbar/blob/8521972e03e20b56193046343a9f5209ac81ac5c/crossbar/worker/proxy.py#L564

however, we should forward that info and the transport details of the frontend session in authextra when joining the respective realm on the backend connection to a router worker

https://github.com/crossbario/crossbar/blob/8521972e03e20b56193046343a9f5209ac81ac5c/crossbar/worker/proxy.py#L327


once we have that, we can use the frontend session and transport details then known to the router worker

https://github.com/crossbario/crossbar/blob/8521972e03e20b56193046343a9f5209ac81ac5c/crossbar/router/router.py#L75

holding the service session for the realm in the WAMP meta API

https://github.com/crossbario/crossbar/blob/8521972e03e20b56193046343a9f5209ac81ac5c/crossbar/router/service.py#L230

oberstet commented 2 years ago

oops, duplicate of https://github.com/crossbario/crossbar/issues/2000