I have an app on the web with the yii2 framework. I need to authenticate users with OTP via SMS/email using the privacyIdea before login into the app.
So far I have done the following things to meet my requirements:
- Setup PrivacyIdea on my local and registered the users with “register” API.
- Now I need to send an OTP to the users on SMS/Email for confirmation.
2.1. I am tried the “/validate/triggerchallenge” API.
2.2 I also configured an SMS gateway account and created a separate token for “totp and sms”. I have added the users into the respective tokens.
2.3 while hitting the API “/validate/check” getting error.
How to configure the PrivacyIdea setup so that I can send otp via sms/email to users using the API requests.