<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sujanan on Medium]]></title>
        <description><![CDATA[Stories by Sujanan on Medium]]></description>
        <link>https://medium.com/@sujananbhathiya?source=rss-277033e57aa3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ldooR9uINsnn2RnGz63Qag.jpeg</url>
            <title>Stories by Sujanan on Medium</title>
            <link>https://medium.com/@sujananbhathiya?source=rss-277033e57aa3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 08:25:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sujananbhathiya/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Configuring TeleSign APIs in WSO2 Identity Server]]></title>
            <link>https://medium.com/@sujananbhathiya/configuring-telesign-apis-in-wso2-identity-server-c28446bd2648?source=rss-277033e57aa3------2</link>
            <guid isPermaLink="false">https://medium.com/p/c28446bd2648</guid>
            <category><![CDATA[identity-management]]></category>
            <category><![CDATA[wso2]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[sms-api]]></category>
            <dc:creator><![CDATA[Sujanan]]></dc:creator>
            <pubDate>Thu, 16 May 2019 03:13:19 GMT</pubDate>
            <atom:updated>2019-05-16T04:54:17.324Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EdaLUY_ENIAKNGyp" /><figcaption>Obligatory image to capture attention!</figcaption></figure><p>If you are here, you would probably know much about TeleSign products already. TeleSign provides a rich set of APIs to cover many use cases in Identity and Access Management. If you want to know why TeleSign is a big deal, read their <a href="https://www.telesign.com/blog/">blog</a>. Let’s see the benefits of these APIs in the WSO2 Identity Server.</p><p>Nowadays most of the IAM solutions provide multi-factor authentication out of the box. WSO2 Identity server is an open source solution with a flexible interface to configure most of the MFA features.</p><p>In this article main focus is on how to configure the followings in WSO2 IS,</p><ul><li>OTP based Authentication using TeleSign SMS API.</li><li>OTP based Authentication using TeleSign Voice API.</li></ul><h4>OTP based Authentication using TeleSign SMS API</h4><p>SMS-OTP module in WSO2 Identity Server does OTP generation internally and let you configure an SMS API to send it to the client. SMS-OTP module is very flexible, and it supports the majority of SMS APIs. You can see many helpful guides in their <a href="https://github.com/wso2-extensions/identity-outbound-auth-sms-otp/blob/master/docs/config.md">documentation</a>, but there is a lack of information about the usage of TeleSign APIs. Therefore I’ll only be mentioning the essence here.</p><ol><li>First, go to the SMS-OTP configuration under <strong>Federated Authenticators</strong> in your Identity Provider’s settings.</li><li>Select both check-boxes to <strong>Enable</strong> SMS-OTP Authenticator and make it the <strong>Default</strong>.</li><li>After creating an account in TeleSign, you will have the necessary credentials to access the API. Now you can fill out following basic configurations in the SMS-OTP module. (Replace the <em>Customer Id</em> and <em>API Key</em> placeholder values with your TeleSign credentials and rest doesn’t change)</li><li><strong>SMS URL</strong> →<a href="https://rest-api.telesign.com/v1/messaging">https://rest-api.telesign.com/v1/messaging</a></li><li><strong>HTTP Method</strong> →POST</li><li><strong>HTTP Headers</strong>→Content-Type: application/x-www-form-urlencoded, Authorization: Basic [Customer ID]:[API Key]</li><li><strong>HTTP Payload →</strong>phone_number=$ctx.num&amp;message=$ctx.msg&amp;message_type=OTP</li><li><strong>HTTP Response Code</strong> → 200</li></ol><h4>OTP based Authentication using TeleSign Voice API</h4><p>The SMS-OTP module is perfectly capable of sending the OTP as a Voice message but, you won’t be able to use its full features as it was not designed for handling Voice. You’ll mainly lose the ability to pause between numbers. Even though the set of configuration has to make looks the same as SMS, for the sake of clarity I’ll mention them again (Only base endpoint changes).</p><ol><li>First, go to the SMS-OTP configuration under <strong>Federated Authenticators</strong> in your Identity Provider’s settings.</li><li>Select both check-boxes to <strong>Enable</strong> SMS-OTP Authenticator and make it the <strong>Default</strong>.</li><li>After creating an account in TeleSign, you will have the necessary credentials to access the API. Now you can fill out following basic configurations in the SMS-OTP module. (Replace the <em>Customer Id</em> and <em>API Key</em> placeholder values with your TeleSign credentials and rest doesn’t change)</li><li><strong>SMS URL</strong> →<a href="https://rest-api.telesign.com/v1/messaging">https://rest-api.telesign.com/v1/voice</a></li><li><strong>HTTP Method</strong> →POST</li><li><strong>HTTP Headers</strong>→Content-Type: application/x-www-form-urlencoded, Authorization: Basic [Customer ID]:[API Key]</li><li><strong>HTTP Payload →</strong>phone_number=$ctx.num&amp;message=$ctx.msg&amp;message_type=OTP</li><li><strong>HTTP Response Code</strong> → 200</li></ol><h4>Risk based adaptive authentication using Score API</h4><p>I have been researching about using the TeleSign risk score API in Identity Server. There are a couple of workarounds to use the API, but every option seems like a hack. The WSO2 Identity server has the script based adaptive authentication but, the provided API,(in JavaScript) doesn’t cover this use case directly. WSO2 Identity Server is an open source IAM solution, so you can always change modules as you want and add new ones if the existing doesn’t match your requirements. There’s this <a href="https://docs.wso2.com/display/IS570/Writing+Custom+Functions+for+Adaptive+Authentication">documentation</a> about extending the JS API which would be a nice place to start.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c28446bd2648" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>