2.6.3 About the Oracle_Tmm_Tx_Token Transaction Token
Enable the creation and propagation of the transaction token to ensure that only authorized users have access to the service. When you set transactionTokenEnabled to true in the YAML file, MicroTx Distributed Transactions creates a new token called Oracle_Tmm_Tx_Token, which is a signed transaction token.
The following steps describe how MicroTx Distributed Transactions creates the Oracle_Tmm_Tx_Token transaction token and propagates it in the subsequent communication between the participant services and MicroTx Distributed Transactions.
- When a user begins a transaction, the transaction initiator service sends a request to MicroTx Distributed Transactions.
- MicroTx Distributed Transactions responds to the transaction initiator and
returns
Oracle_Tmm_Tx_Tokenin the response header.The MicroTx Distributed Transactions library creates this token based on the public-private key pair that you provide. You don't have to create the
Oracle_Tmm_Tx_Tokentransaction token or pass it in the request header.MicroTx Distributed Transactions works with multiple headers and tokens. For the sake of simplicity, we are limiting our discussion to the
Oracle_Tmm_Tx_Tokentransaction token in this section. - For all the subsequent calls from the participant services to the transaction coordinator, the MicroTx Distributed Transactions library passes
Oracle_Tmm_Tx_Tokenin the request header.
To enable propagation of the transaction token in a Kubernetes Cluster, see Transaction Token Properties.
Parent topic: About Authentication and Authorization