SetJwtPublicKey

Set the public key used for JWT authentication of non-system users

Metadata

  • Message Type: TransactionMessage
  • Message Number: 1105

Inherited fields

NameTypeSize (bytes)Description
MessageTypeInteger (unsigned)2The unique identifier of this message.
ClientIdInteger (unsigned)4The unique identifier of a session with the server, returned in a successful LoginReply message.
RequestIdInteger (unsigned)4Within each session each message must be uniquely identified by this field. It must be monotonically increasing for the duration of the session.

Fields

NameTypeSize (bytes)Description
PublicKeyTypeOne of PublicKeyType1The public key type to be set:
* 1 for System,
* 2 for User.
FirmForeign key to Firm8Optional Firm for which the key is to be set.
PublicKeyLenInteger (unsigned)8The length of the public key string.
PublicKeyString1024The public key to be set for JWT authentication as a trailing space-padded fixed 1024 byte string.

Permissions


Set Jwt Public Key

{
	publickeytype: PublicKeyType.User,
	publickey:
		"MIGeMA0GCSqGSIb3DQEBAQUAA4GMADCBiAKBgElBdDOTLEEG0JBWk6687Q2YjR72z5y8+3CbtWWjcFrmGguv98rqLh1V57loEv4hCWaPoMjGOEwPg2pMtlSfogL+OPEn1vNwYmUa8Asmb2855ZdNrq8d8gCIsg/sX+NPB/WYYgVqv0bShgENrgXU7wpuMawmBxkxcfs/r+G/mQS/AgMBAAE=",
}

Permission Checks

PermissionActionTableScopeIndex
AdministerPublicKeyInstance-1

Test file: SetJwtPublicKey