Open using-system opened 2 years ago
WIth an Api Key + Authorization, it still doesn't seem to work :(
const cable = new ActionCable({
headers: {
'Authorization': 'Bearer ****',
'JWT-AUD': '*****',
'APIKEY': '****'
}
});
Any help would be appreciated :)
+1 anyone ?
Hey everyone, we've deploy some fixes on our websockets and both the APIKEY and/or JWT tokens should now be supported. Thank you for your patience!
Can anyone here confirm that @redox fixes are working ? On my side I still observe the same behavior as @using-system and @jmaupoux :'(
Tried with Authorization + JWT-AUD headers...
Unfortunately not, i still get "Not authorized to access Subscription.currentUserWasUpdated"
@redox... Unfortunately I think this issue should be re-opened
Doesn't work for me either
Unfortunately, currentUserWasUpdated doesn't work for me as well. The same issue with offerWasUpdated that also requires user to be authorized: https://github.com/sorare/api/issues/370
Was there ever any update on this issue?
Hello,
I'm trying to make test with onCurrentUserWasUpdated subscription with Authorization Bearer authentication
Endpoint
wss://ws.sorare.com/cable
Headers
Requests
{"command":"subscribe","identifier":"{\"channel\":\"GraphqlChannel\"}"}
Then{"command":"message","identifier":"{\"channel\":\"GraphqlChannel\"}","data":"{\"query\":\"\\r\\nsubscription onCurrentUserWasUpdated {\\r\\n currentUserWasUpdated {\\r\\n cardCounts { common }\\r\\n } \\r\\n}\\r\\n\",\"variables\":null,\"operationName\":\"onCurrentUserWasUpdated\",\"action\":\"execute\"}"}
Responses
Then
Test with...
Tested with a node JS client, WebSocketClient in .NET and with Postman client. Same results... --> Not authorized to access Subscription.currentUserWasUpdated
Other subscription neededs authorization (depth > 5) return the error "Query has depth of 6, which exceeds max depth of 5 instead. Using an APIKEY the limit would be 10." (with Authorization header).
The same bearer token working with https endpoints.
What did I forget ?
NODE JS code
Based from code https://github.com/sorare/api/blob/master/examples/subscribeAllCardUpdates.js
Postman screenshots