Twilio Access Token Generator v2

Content Type: Module
Categories: Authentication

Overview

This module implements a Java action that can be used to generate Access Tokens required to authenticate Mendix application users to Twilio communications services.

 

Documentation

Typical usage scenario

Access Tokens are short-lived tokens that you use to authenticate Twilio client-side SDKs like VoiceConversationsSync, and Video.

 

Features and limitations

Java action supports Java 21.

 

Dependencies

Java dependency com.twilio.sdk is maintained from the userlib path and not using the Mendix supported Maven dependency management capability (vendorlib) due to the inability to configure dependency exclusions.

 

Installation

Download this module and use it in your Mendix project.

 

Configuration

The java action takes in 4 parameters:

 

1. identity: The identity to associate with the Access Token. Typically, this will be a username in your system. Voice tokens may only contain alpha-numeric and underscore characters. For privacy considerations, it is recommended that this value is a GUID identifier.

2. twilioAccountSid: The SID of the Account that will be responsible for the new Key resource.

3. twilioApiKey: The Twilio-provided string that uniquely identifies the Key resource to fetch.

4. twilioApiSecret: The private key. Ensure this key is encrypted in your Mendix applications.

 

Releases

Version: 2.0.1
Framework Version: 10.6.24
Release Notes: This module is derived from an earlier version available in the marketplace but not maintained since 2021. This v2 version supports Mendix 10 applications configured to run on Java version 21. Note, that because Mx 10.6.24 does not yet support Maven dependency exclusions, we had to revert to the userlib to manage the com.twilio.sdk Java dependency. This was necessary to resolve an open-source software license conflict.