Create and Verify PASETO Tokens in Java
Tutorial: Learn how to create and parse PASETO tokens in Java with JPaseto
Create and Verify PASETO Tokens in Java
Tutorial: Learn how to create and parse PASETO tokens in Java with JPaseto
christopher clark
Who provides the key?
Hi Got below issue while generating the token:
I am facing issues while generating Pasetos token and
Pasetos.V2.LOCAL.builder()
.setSharedSecret(secretKey)
.setIssuedAt(now)
.setExpiration(now.plus(2, ChronoUnit.HOURS))
.setSubject(userPrincipal.getUsername())
.setKeyId(UUID.randomUUID().toString())
.setAudience(“bootlabs.com”)
.setIssuer(“dev.com”)
.claim(“aut”, authorities)
.compact();
throws-
Error: Failed to calculate BLAKE2b digest
Using - spring boot version - 3.0.2
tried with PASETO version - 0.7.0, 0.6.0
Don’t find a clear reason behind this error.