I am trying to use Oauth using Tyrus Web Socket.
I tried using:
AuthConfig authConfig = AuthConfig.Builder.create(). disableBasicAuth(). build();
Credentials credentials = new Credentials("Authentication", "Bearer Key");
client.getProperties().put(ClientProperties.AUTH_CONFIG, authConfig);
client.getProperties().put(ClientProperties.CREDENTIALS, credentials);
But this doesn't work. I get an hand shake error.