Table of Contents

REST Second Factor

This plugin can be used to add a second factor for authentication (SMS, OTP,…). It uses external web service to send and validate the second factor.

Configuration

All parameters are configured in “General Parameters » Portal Parameters » Second Factors » REST 2nd Factor”.

Arguments

Arguments are a list of key/value. Key is the name of JSON entry, value is attribute or macro name.

For Verify URL, you should send $code at least

REST Dialog

REST web services just have to respond with a “result” key in a JSON file. Auth/UserDB can add a “info” array to will be copied is session data (without reading “Exported variables”).

URL Query Response
Init URL JSON file: {“user”:$user,…} JSON file: {“result”:true/false}
Verify URL JSON file: {“user”:$user,“code”:“$code”,…} JSON file: {“result”:true/false}