Kevin Loveland
02/05/2025, 8:29 PMJwtCredentials
into the principal returned during the validate call to be later used by the HttpClient?Finn Jensen
02/05/2025, 11:17 PMfun JWTPrincipal.toToken(): String = JWT.create().apply {
withAudience(*audience.toTypedArray())
withIssuer(issuer)
withPayload(payload.claims)
withExpiresAt(expiresAt)
}
.sign(Algorithm.HMAC256(secret))
Arjan van Wieringen
02/06/2025, 12:38 AM