cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2474
Views
1
Helpful
4
Replies

DUO SMS Passcode

officeforumsid
Level 1
Level 1

Hi,
I am using DUO auth API to send SMS passcode to the users mobile asynchronously without bringing up the DUO frame. Is it possible to get SMS passcode code that is sent to the user? Is there an API to get that code in the server-side?

I am sending user name, factor, device and async parameters to the /auth/v2/auth post request and using SMS option to send one-time code. After sending, I get the following code:
{“stat”:“OK”,“response”:{“txid”:“45453434-s45ddgf6-se5d4v-f4345”}}

I am trying to accomplish this.
I send an OTP to the user mobile from the server-side of my web application and then display a popup for the user to re-enter the passcode sent to his mobile. Once the user enters this in my web app pop-up (not in DUO frame window
in passcode text field section), I want to validate this entry against what is sent.

So is it possible to get the generated passcode?

Also, is it possible to send custom passcode, i.e, my 7 or 8 digit passcode?

Thanks.

4 Replies 4

I am trying to make duo auth api call
Endpoint name is "/auth"
And I am referring to this one
https://duo.com/docs/authapi#/auth

In this I want to make auth call with

Factor as "sms"
It's working fine. But it's proving me with a batch of 10 passcode. But I only need one.
How to achieve this

If there are any solutions for this
Guide me through that

Please refer to our public documentation: https://duo.com/docs/administration-settings#sms-passcodes

 

Duo, not DUO.

Thanks

 

DuoKristina
Cisco Employee
Cisco Employee

The answer to both of your questions is no.

If you want your website to actually perform the OTP generation it’s probably more efficient for you to just use a telephony provider’s APIs directly to send the SMS for you with passcodes you generate.

Duo, not DUO.
Quick Links