OTP Management Widget
Definition
The OTP Management widget is used to manage the available addresses enrolled using the OTP enrollment widget or through the Groovy API.
It is a standalone widget that requires a host feature of type "self" or an object feature where the object is the current subject.
Typically used in a UI_FOR_OBJECT feature of type "self".
The user is presented with a list of available addresses which can be enabled/disabled or deleted.
Configuration
Properties
When the widget is placed in a non-self feature it can manage the OTP addresses of any users in the scope of the feature. These features should hence be reserved for admin purposes.
Property name | Type | Mandatory | Description | Values (default value in bold) |
---|---|---|---|---|
canDelete |
| NO | The user is allowed to delete addresses | true, false |
canEnable |
| NO | The user is allowed to enable/disable the address | true, false |
otpModules |
| NO | A list of OTP modules which configures the different CGW modules on which the addresses can be listed. | Empty List |
obfuscate |
| NO | Turn on/off obfuscation of addresses | true, false |
otpModules properties
Property name | Type | Mandatory | Description | Values (default value in bold) |
---|---|---|---|---|
module |
| NO | The user is allowed to delete addresses | true, false |
module properties
Property name | Type | Mandatory | Description | Values (default value in bold) |
---|---|---|---|---|
moduleId |
| NO | The OTP module id. | |
otpType |
| NO | The type of the OTP address. | EMAIL, PHONE |
readOnly |
| NO | In readOnly, the addresses of the module cannot be deleted or enabled/disabled | true, false |
Example
<widget id="otp-management-widget" xsi:type="ctdbum:OTPAddressManagementWidgetType">
<hidden>false</hidden>
<displayOptions>
<modalSize>SM</modalSize>
</displayOptions>
<config>
<bordered>false</bordered>
<title>true</title>
<canDelete>true</canDelete>
<canEnable>true</canEnable>
<otpModules>
<module>
<moduleId>corporate_mail</moduleId>
<otpType>EMAIL</otpType>
<readOnly>false</readOnly>
</module>
</otpModules>
</config>
</widget>