lundi 3 septembre 2018

Pass headers from HttpClient to WebSocket to make token auth

I'd like to ask for help to implement next scenario: Need to make authentication via STOMP Over WebSocket. To do so need: - Make http request for handshake via httpClient - Extract http headers (I haven't even find them) - Add to WebSocket client, along with Auth Token during subscribe.

Mostly I don't understand how extract or where stored response headers, so I can not even check if I send http request in correct way.

It in some kind similar to How should i pass variable extracted From Payload thru test classes?

Haven't find any examples with connection to STOMP Over WebSocket using token auth at all :(

Thanks!

Aucun commentaire:

Enregistrer un commentaire