Hi Vishanth,

If you are going to send the OTP using send grid API only you need to set
the required values. If so, leave the send grid form data like [1]. Please
put a valid API key to the property 'SendgridAPIKey' and try.

[1] SendgridFormData=to=<TO_EMAIL>&from=<FROM_EMAIL>&subject=OTP
Code&html=<BODY>

Thank you

On Mon, Jan 30, 2017 at 11:55 AM, Kathees Rajendram <[email protected]>
wrote:

> Hi Vishanth,
>
> Are you using email OTP authenticator with SMTP transport or Email APIs?
>
> Thanks,
> Kathees
>
> On Mon, Jan 30, 2017 at 11:40 AM, Vishanth Balasubramaniam <
> [email protected]> wrote:
>
>> Hi,
>>
>> I followed the steps mentioned in the docs [1]. I am not sure what
>> exactly I need to set for the following configurations
>>
>>    - SendgridFormData
>>    - SendgridURLParams
>>
>>
>> I am getting the following error when I tried to do the 2 step
>> authentication via Email OTP.
>>
>> [2017-01-30 11:30:35,087] ERROR {org.wso2.carbon.identity.auth
>> enticator.emailotp.EmailOTPAuthenticator} -  Unable to send the code
>>
>> org.wso2.carbon.identity.application.authentication.framewor
>> k.exception.AuthenticationFailedException: Unable to send the code
>>
>> at org.wso2.carbon.identity.authenticator.emailotp.EmailOTPAuth
>> enticator.initiateAuthenticationRequest(EmailOTPAuthenticator.java:186)
>>
>> at org.wso2.carbon.identity.application.authentication.framewor
>> k.AbstractApplicationAuthenticator.process(AbstractApplicati
>> onAuthenticator.java:64)
>>
>> at org.wso2.carbon.identity.application.authentication.framewor
>> k.handler.step.impl.DefaultStepHandler.doAuthentication(Defa
>> ultStepHandler.java:466)
>> .
>> .
>> .
>> Caused by: org.wso2.carbon.identity.application.authentication.framewor
>> k.exception.AuthenticationFailedException: Unable to send the code
>>
>> at org.wso2.carbon.identity.authenticator.emailotp.EmailOTPAuth
>> enticator.initiateAuthenticationRequest(EmailOTPAuthenticator.java:186)
>>
>> ... 62 more
>>
>> [1] - https://docs.wso2.com/display/ISCONNECTORS/Configuring+
>> EmailOTP+With+Email+APIs
>>
>>
>> Regards,
>> Vishanth
>>
>> --
>> *Vishanth Balasubramaniam*
>> Committer & PMC Member, Apache Stratos,
>> Software Engineer, WSO2 Inc.; http://wso2.com
>>
>> mobile: *+94 77 17 377 18*
>> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>>
>
>
>
> --
> Kathees
> Software Engineer,
> email: [email protected]
> mobile: +94772596173 <+94%2077%20259%206173>
>



-- 
Shakila Sivagnanarajah
Software Engineer
Mobile :+94 (0) 768 856837
[email protected]
WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to