aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-28 15:30:11 +0300
committerGravatar Vitaly Takmazov2018-03-28 15:30:11 +0300
commitf93c6a2e1bca880d20f07e8ddd15eadfeb39d730 (patch)
tree4a20b440e2577b25464172abcc4705e8fc9bf0ce /juick-notifications/src
parent49bf2e2971d734ed8d1e5fdc6aab284a51fa5203 (diff)
fix ws client authentication
Diffstat (limited to 'juick-notifications/src')
-rw-r--r--juick-notifications/src/main/java/com/juick/components/configuration/JuickServerWebsocketConfiguration.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-notifications/src/main/java/com/juick/components/configuration/JuickServerWebsocketConfiguration.java b/juick-notifications/src/main/java/com/juick/components/configuration/JuickServerWebsocketConfiguration.java
index 79459d72..0cecb597 100644
--- a/juick-notifications/src/main/java/com/juick/components/configuration/JuickServerWebsocketConfiguration.java
+++ b/juick-notifications/src/main/java/com/juick/components/configuration/JuickServerWebsocketConfiguration.java
@@ -56,8 +56,8 @@ public class JuickServerWebsocketConfiguration {
try {
ResponseEntity<String> response = rest().exchange("https://api.juick.com/auth",
HttpMethod.GET, null, String.class);
- hash = jsonMapper.readValue(response.getBody(), String.class);
- } catch (HttpClientErrorException | IOException e) {
+ hash = response.getBody();
+ } catch (HttpClientErrorException e) {
logger.warn("service component is not authenticated", e);
}
String websocketURI = UriComponentsBuilder.fromUriString(baseUri)