SetJwtPublicKey
Set the public key used for JWT authentication of non-system users
- Section: Transactions
- Related Message: SetJwtPublicKeyReply
Metadata
- Message Type: TransactionMessage
- Message Number: 1105
Inherited fields
| Name | Type | Size (bytes) | Description |
|---|---|---|---|
| MessageType | Integer (unsigned) | 2 | The unique identifier of this message. |
| ClientId | Integer (unsigned) | 4 | The unique identifier of a session with the server, returned in a successful LoginReply message. |
| RequestId | Integer (unsigned) | 4 | Within each session each message must be uniquely identified by this field. It must be monotonically increasing for the duration of the session. |
Fields
| Name | Type | Size (bytes) | Description |
|---|---|---|---|
| PublicKeyType | One of PublicKeyType | 1 | The public key type to be set: * 1 for System, * 2 for User. |
| Firm | Foreign key to Firm | 8 | Optional Firm for which the key is to be set. |
| PublicKeyLen | Integer (unsigned) | 8 | The length of the public key string. |
| PublicKey | String | 1024 | The 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
| PermissionAction | Table | Scope | Index |
|---|---|---|---|
| Administer | PublicKey | Instance | -1 |
Test file: SetJwtPublicKey