generate jwt secret key
node -e "console.log(require('crypto').randomBytes(256).toString('base64'));"
generate jwt secret key
node -e "console.log(require('crypto').randomBytes(256).toString('base64'));"
generate private key for jwt
PrivateKey privateKey = // Load an RSA private key from configuration
Instant now = Instant.now();
String jwt = Jwts.builder()
.setAudience("https://${yourOktaDomain}/oauth2/default/v1/token")
.setIssuedAt(Date.from(now))
.setExpiration(Date.from(now.plus(5L, ChronoUnit.MINUTES)))
.setIssuer(clientId)
.setSubject(clientId)
.setId(UUID.randomUUID().toString())
.signWith(privateKey)
.compact();
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us