Configure the TsgcWebSocketClient to send the Bearer token in the Authentication property (enable only the Token section of the authentication property)
OK, you mean during the signalr negotiation not during the websocket handshake, sorry for misunderstanding. Currently is not supported to pass a bearer token during the negotiation but I'll implement for the next release.
I've implemented the Bearer Token as SignalR Authentication, this will be included in the next release, I plan to publish the new release the next week.
Thank so much for the new implementation. If cant skip negotiation i will need it.
But im trying to connect to a Hub developed in .NET6 and i always receive 404 not found.
Attach:
-vStudio project with the Hub in .Net 6 and a Console app client to the hub
-Delphi project based on Demos/02.WebSocket_protocolos/07.SignalR_Server_and_Client/delphi
I have captured the traffic from the two clients and the esegece client always does the negotiation with "/signalr". You can see in the screenShoots
How could I call the attached hub from the esegece client?
Ok, I see, the problem is SignalR has changed the protocol in the latest versions, so this requires to implement those changes in the SignalR protocol. I will let you know when you can test the new version.
Forget the previous post, the component you need is SignalRCore, not SignalR. I've modified your sample to use SignalRCore client, with this component the client can connect to the SignalR Server.
It is possible to send the authorization header in the next calls instead of as a queyr parameter.
In my case I do not allow receiving the token by parameter for security reasons.
Do you mean passing the token as an Authorization Bearer Token Header (instead of a query parameter)? yes, it's possible, I can create a property to handle this behaviour.