Configuration
Complete reference for every bx-jwt ModuleConfig.bx setting.
settings = {
// ----------------------------------------------------------------
// Key Registry
// ----------------------------------------------------------------
keys : {
// "myapp-hmac" : { algorithm : "HS256", secret : "${env.JWT_SECRET}" },
// "myapp-rsa" : { algorithm : "RS256", privateKey : "/path/to/private.pem", publicKey : "/path/to/public.pem" }
},
// ----------------------------------------------------------------
// Signature Defaults
// ----------------------------------------------------------------
defaultSigningKey : "",
defaultVerifyKey : "",
defaultAlgorithm : "HS256",
// ----------------------------------------------------------------
// Encryption Defaults
// ----------------------------------------------------------------
defaultEncryptionKey : "",
defaultDecryptionKey : "",
defaultKeyAlgorithm : "RSA-OAEP-256",
defaultEncAlgorithm : "A256GCM",
// ----------------------------------------------------------------
// Token Behavior
// ----------------------------------------------------------------
generateIat : true,
generateJti : true,
clockSkew : 60,
// ----------------------------------------------------------------
// Default Claims (auto-injected when missing from the payload)
// ----------------------------------------------------------------
defaultIssuer : "",
defaultAudience : "",
defaultExpiration : 0,
// ----------------------------------------------------------------
// Security
// ----------------------------------------------------------------
allowedAlgorithms : []
}Settings Reference
Setting
Type
Default
Purpose
Key Registry Entry Shape
Property
Type
Description
Zero-Argument BIFs
Related
Last updated
Was this helpful?
