There are some cases when you will need to generate an OTP (One Time Password) from a business flow, for example when validating an email account.
The notifications plugin handles both the actual OTP code generation and sending the code to the user using a defined notification template.
DEVELOPER: Kafka topic names can be set/found by using the following environment variables in your Notifications plugin deployment:
KAFKA_TOPIC_OTP_GENERATE_IN
KAFKA_TOPIC_OTP_GENERATE_OUT
- after the OTP is generated and sent to the user, this is the topic used to send the response back to the Engine.The Engine is listening for messages on topics with names of a certain pattern, make sure to use an outgoing topic name that matches the pattern configured in the Engine.
Values expected in the request body:
Values expected in the reply body:
Example:
It is important to identify what is the business identifier that you are going to use to validate that OTP, it can be, for example, a user identification number.
KAFKA_TOPIC_OTP_GENERATE_IN
topic - send the otp request) and the topic used to receive the response (KAFKA_TOPIC_OTP_GENERATE_OUT
) is defined properly.You can check the defined topics by going to FlowX Designer > Platform Status > notification-plugin-mngt > kafkaTopicsHealthCheckIndicator > details > configuration > topic > otp.
There are some cases when you will need to generate an OTP (One Time Password) from a business flow, for example when validating an email account.
The notifications plugin handles both the actual OTP code generation and sending the code to the user using a defined notification template.
DEVELOPER: Kafka topic names can be set/found by using the following environment variables in your Notifications plugin deployment:
KAFKA_TOPIC_OTP_GENERATE_IN
KAFKA_TOPIC_OTP_GENERATE_OUT
- after the OTP is generated and sent to the user, this is the topic used to send the response back to the Engine.The Engine is listening for messages on topics with names of a certain pattern, make sure to use an outgoing topic name that matches the pattern configured in the Engine.
Values expected in the request body:
Values expected in the reply body:
Example:
It is important to identify what is the business identifier that you are going to use to validate that OTP, it can be, for example, a user identification number.
KAFKA_TOPIC_OTP_GENERATE_IN
topic - send the otp request) and the topic used to receive the response (KAFKA_TOPIC_OTP_GENERATE_OUT
) is defined properly.You can check the defined topics by going to FlowX Designer > Platform Status > notification-plugin-mngt > kafkaTopicsHealthCheckIndicator > details > configuration > topic > otp.