diff --git a/proxy/src/com/aerospike/client/proxy/auth/AuthTokenManager.java b/proxy/src/com/aerospike/client/proxy/auth/AuthTokenManager.java index bea78f102..d2a11ccbd 100644 --- a/proxy/src/com/aerospike/client/proxy/auth/AuthTokenManager.java +++ b/proxy/src/com/aerospike/client/proxy/auth/AuthTokenManager.java @@ -249,7 +249,7 @@ private boolean isTokenRequired() { private AccessToken parseToken(String token) throws IOException { String claims = token.split("\\.")[1]; - byte[] decodedClaims = Base64.getDecoder().decode(claims); + byte[] decodedClaims = Base64.getUrlDecoder().decode(claims); @SuppressWarnings("unchecked") Map parsedClaims = objectMapper.readValue(decodedClaims, Map.class); Object expiryToken = parsedClaims.get("exp");