Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Home
Jobs
Ideas
Members
Mentorship
User Groups
Downloads
Platforms
OutSystems.com
My Platform
Community
Resources
Support
Search in OutSystems
Log in
Sign Up
Community
›
Forge
›
Assets list
›
WebOTP API
WebOTP API
Stable version
1.0.0
(Compatible with
OutSystems 11
)
Uploaded
on
29 Apr (6 days ago)
by
0.0
(0 ratings)
Overview
Reviews
Versions
Documentation
Support
WebOTP API
Details
The WebOTP API component for OutSystems Forge is a powerful tool designed to enhance user authentication in web applications by seamlessly integrating One-Time Password (OTP) functionality. This component allows developers to easily implement OTP reading capabilities directly within their screens or blocks, streamlining the verification process for users. By leveraging the WebOTP API, this component enables automatic detection and retrieval of OTPs sent via SMS, improving user experience and reducing friction during login or transaction verification. With simple integration, the WebOTP API component is an essential addition for any web application seeking to enhance security and user convenience.
Read more
Documentation
About:
The WebOTP API component for OutSystems Forge is a powerful tool designed to enhance user authentication in web applications by seamlessly integrating One-Time Password (OTP) functionality. This component allows developers to easily implement OTP reading capabilities directly within their screens or blocks, streamlining the verification process for users. By leveraging the WebOTP API, this component enables automatic detection and retrieval of OTPs sent via SMS, improving user experience and reducing friction during login or transaction verification. With simple integration, the WebOTP API component is an essential addition for any web application seeking to enhance security and user convenience.
How to use:
a) Inputs:
1. TimeoutInSec: Specify the duration in seconds before a timeout event is triggered. If set to zero, no timeout is applied, and the timeout event will not be triggered.
b) Events:
1. OTP: This event returns the OTP when the retrieval is successful.
2. Error: This event triggers if an error occurs while attempting to get the OTP.
3. TimeOut: This event triggers if a timeout occurs before the OTP is received. Note that this event is not triggered if the TimeoutInSec input is set to zero.
4. NotSupported: This event triggers if the browser does not support the WebOTP API.
c) SMS Format for WebOTP API:
The SMS message sent to the user must contain the following mandatory format:
@example.com #123456
In this format:
@example.com represents the domain associated with the OTP request.
#123456 is the actual OTP code sent to the user.
d) Usage Instructions:
1. Integration in Screens or Blocks: Add the OTP block inside an If condition or a container whose visibility is controlled by a boolean variable.
2. Setting the Boolean Variable: When sending the OTP to the user, set the boolean variable to true to display the block.
3. Event Handlers: Add event handlers for the block. Handling the OTP event is mandatory, and it is recommended to handle all events for comprehensive management.
4. Hiding the Block: Once any event is triggered (OTP, Error, TimeOut, NotSupported), set the boolean variable to false to hide the block. Hiding the block is important for performing cleanup tasks.
Note: For more information on the WebOTP API, please refer to:
https://developer.mozilla.org/en-US/docs/Web/API/WebOTP_API
.
Release notes
(1.0.0)
License
(1.0.0)
BSD-3 license (
https://opensource.org/licenses/BSD-3-Clause
)
Reviews
(0)
Team
Other assets in this category
Functional libraries & utilities, Security & authentication
JWT
João Almeida
Library for creating, decoding and validating JSON Web Tokens, an open, industry standard RFC 7519 method for representing claims securely between two parties.
5303
CryptoToken
Edson Marques
Function for encrypting information, ideal for use in IDs in screen transitions, according to the demo.
117
EmailAfterOTP
Code Ninja
This app can be used to send email containing OTP after generating it.
48
More from you
Restrict Characters
you
A client action to restrict characters with Regular Expression (RegEx) that allows users to set specific constraints on the characters that can be entered in a certain field, and it works for both web and mobile applications (input has to be of text type). It uses pattern-matching syntax to validate the input and ensure that it meets the specified criteria. For example, if the user wants to restrict a field to only accept alphanumeric characters, they can set a RegEx pattern to match only letters and numbers. This feature can be used to enforce data quality and consistency, ensuring that the entered data meets the required format and is free of unwanted characters. By implementing this client action, developers can improve the user experience and prevent errors in data input for both web and mobile platforms.
105
Multiselect Checkbox
you
Simplify selections in your OutSystems app with the Multiselect Checkbox Component. Perfect for tables and lists, it lets users easily pick and choose items. Customize the look, handle pagination and sorting effortlessly. Make selections a breeze with the straightforward Multiselect Checkbox Component.
43
Loading
Loading...