altcha
Reactive icon

Altcha

Stable version 1.1.0 (Compatible with OutSystems 11)
Uploaded
 on 18 Apr
 by 
5.0
 (1 rating)
altcha

Altcha

Documentation
1.1.0

Before we start using this component we need to configure some site properties in the espace AltchaConfigs_BL.

Set the values for the following site properties:

  • DeleteOldSolutionsInMinutes - This is the value that we will delete old solutions from the database, so it doesn't have resubmits.
  • ExpirationInSeconds - Time in seconds that the Altcha solution will expire before we check it. If we put 0 it will not use this validation.
  • ALG - Algorithm method. Default value is "SHA256"
  • JS_ALG - Algorithm method. Default value is "SHA-256"
  • HMAC_ALG - HMAC Algorithm, default value is "HMACSHA256"
  • HMAC_KEY - HMAC Key. you can generate your key in a tool like HMAC-SHA256 Online Generator Tool


After this initial configuration, we can start using our Altcha component. To use this component, we should import the WB and configure it like we want.

In the submit action of the screen, you have to call the action VerifyServerAltcha to validate the Altcha solution to check that is a valid.


Optional parameters in the component:

  • IsAuto - Automatically verify without user interaction (possible values: onload, onsubmit).
  • Expire - The challenge expiration (duration in milliseconds).
  • IsHideFooter - Hide the footer.
  • IsHideLogo - Hide the ALTCHA logo.
  • MaxNumber - The max. number to iterate to (defaults to 1,000,000).
  • Translations - JSON-encoded translation strings. Refer to customization.
  • IsRefetchOnExpire - Automatically re-fetch and re-validate when the challenge expires (defaults to true).
  • Workers - The number of workers to utilize for PoW (defaults to navigator.hardwareConcurrency || 8).
  • StyleList - We can define a list of specific styles (CSS variables) to customize the component. Refer to customization.

Development / testing options:

  • IsDebugMode - Print log messages in the console.



More information about this component, you can access it here.