Skip to content
GitHub

Guest Configuration

Guest Configuration enables guest user authentication for applications that need to allow unauthenticated or temporary access.

Table name: guest_config

FieldTypeDescription
tenant_idCHAR(10)Tenant identifier (Primary Key)
is_encryptedBOOLEANWhether the secret key is encrypted (default: true)
secret_keyVARCHAR(16)Secret key for guest authentication
allowed_scopesJSONArray of scope names allowed for guest users (default: empty array)

When is_encrypted is set to true, guest identifiers must be encrypted using the following parameters:

ParameterValue
AlgorithmAES (Advanced Encryption Standard) with CBC mode
KeyShared secret key from secret_key field
IVZero initialization vector (16 bytes of zeros)
EncodingBase64 for encrypted identifier
PaddingNo padding (encrypted data must be block-aligned)

Guest authentication uses the basic mandatory configurations: