Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to Azure SignalR managed service seems impossible. #94

Open
Waebs opened this issue Nov 24, 2022 · 1 comment
Open

Connecting to Azure SignalR managed service seems impossible. #94

Waebs opened this issue Nov 24, 2022 · 1 comment

Comments

@Waebs
Copy link

Waebs commented Nov 24, 2022

It is apparently impossible to connect to the Azure SignalR managed service.

We tried with ,

  • Passing a token (created with az account get-access-token),
  • Passing the "AcessKey": KEY
  • Passing a "ClientId": ClientId with a system attributed identity.
HubConnectionBuilder()
            .with_url(
                config.get("(wss://qantio-client-sdk-messages.service.signalr.net/)"),
                options={
                    "access_token_factory": lambda: TOKEN,
                    "headers": {
                        # "Authorization": "Bearer " + TOKEN,
                        # "key": KEY,
                        # "access_key": KEY,
                        # "AcessKey": KEY,
                        # "AuthType": "azure.msi",
                        # "ClientId": CLIENT_ID,
                    },
                },
            )

In all the cases we receive a 403,

  File "signalrcore\transport\websockets\websocket_transport.py", line 105, in negotiate
    raise HubError(
signalrcore.hub.errors.HubError: 403

With DEBUG on,

2022-11-24 15:40:42,203 - SignalRCoreClient - DEBUG - Handler registered started ReceiveMessage
2022-11-24 15:40:42,204 - SignalRCoreClient - DEBUG - Handler registered started SendMessage
2022-11-24 15:40:42,204 - SignalRCoreClient - DEBUG - Starting connection ...
2022-11-24 15:40:42,204 - SignalRCoreClient - DEBUG - auth function result _redacted_
2022-11-24 15:40:42,206 - SignalRCoreClient - DEBUG - Connection started
2022-11-24 15:40:42,206 - SignalRCoreClient - DEBUG - Negotiate url:https://_redacted_.service.signalr.net/negotiate
2022-11-24 15:40:42,288 - SignalRCoreClient - DEBUG - Response status code403
2022-11-24 15:40:42,289 - SignalRCoreClient - WARNING - AuthHubConnection
2022-11-24 15:40:42,289 - SignalRCoreClient - WARNING - 403

Has anyone managed to connect Azure SignalR with signalrcore ?

Thx for Help

@CameronVetter
Copy link

Months later, and found myself here as well after trying the same things, any ideas @mandrewcito ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants