asp.net core signalR Custom Authentication and tagging connection with custom id

941 Views Asked by At

We are trying to use asp.net core signalR to update client application from the server. Our client will send userId & custom Id in the query parameter when it first creates the connection. We need to check userId & custom Id in the database to ensure those are correct before creating the connection and will return unauthorized response for invalid userId&customid pair. And later we need to find the client searching by custom Id to send message. From Here I can only see cookie and bearer token authentication. Is there any way of manually authenticate and tag connection for further search?

0

There are 0 best solutions below