Oauth in Tyrus WebSocket

179 views Asked by At

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.

0

There are 0 answers