I have a server which uses ASP.NET Core Web Api
and OpenIddict
as authorization framework. Now I've added an SignalR
host and want to add authorisation to it.
From different sources I found that SignalR
(JS Client) wants that you send the access token in the querystring or by cookie as websockets don't support headers.
As the authentication middleware doesn't check the querystring or cookie container for an authorization entry I need to implement such an provider/retriever/resolver which reads this value by myself.
I've found a solution for IdentityServer
but nothing about OpenIddict
.
Where/How do I implement such an token resolver with OpenIddict
?