← Back to plugin index

Plain Base64 Ticket Encoder

Description
Encodes the ticket using base-64.

The keys/values in the ticket are encoded as configured in the plugin that uses this encoder. The expiry date is then appended as binary (see below) and the resulting byte array is base-64 encoded. Thus, there is no cryptographic protection in place!

Example:
"medusaID=1234;uname=smith;roles=customer,employee;name1=value1;name2=value2;[1444838488]"
All keys and the individual values are URL-encoded with the character set that is specified within the Identity Propagator. The value in square brackets symbolizes the added timestamp.

Important: The expiry date which is appended as binary consists of the milliseconds since midnight of 01.01.1970 and is represented as 64 bit signed integer (MSB first). Please be aware that for the successful decoding of the value, it is important to either use the PlainBase64TicketDecoder plugin or make sure to strip away the last 8 bytes (the added timestamp) of the content, if it is not relevant in your setup.

Type name
PlainBase64TicketEncoder
Class
com.airlock.iam.core.misc.util.ticket.codec.PlainBase64TicketEncoder
May be used by
Properties
YAML Template (with default values)

type: PlainBase64TicketEncoder
id: PlainBase64TicketEncoder-xxxxxx
displayName: 
comment: 
properties: