Hi all,
My objective is to connect my java client with the SignalR Hub.
I added a push-notification with Destination Type SignalR Hub as it is described here: Push Notifications: To Connect to the SignalR Hub.
I use the following code snippet to connect my client with the SignalR Hub:
String login = "<my_user>";
String tenant = "<my_tenant>";
String password = "<my_password>";
String basicAuthPlain = login + "@" + tenant + ":" + password;
String encodedBasicAuth = Base64.getEncoder().encodeToString(basicAuthPlain.getBytes());
HubConnection hubConnection = HubConnectionBuilder.create("https://<my_x360_domain>/PushNotificationsHub")
.withHeader("Authorization", "Basic " + encodedBasicAuth)
.build();
hubConnection.start().blockingAwait(30, TimeUnit.SECONDS);
...
However, after executing start().blockingAwait() I receive the http status 401.
Do I miss something? Can anyone tell me how I can sucessfully connect/authenticate the client?
Thanks in advance