Giter VIP home page Giter VIP logo

Comments (3)

hasan1st avatar hasan1st commented on August 26, 2024

You should have a look at the documentation here:
https://duo.com/docs/adminapi

duoSendSMSCodes sends SMS "passcode", not "activation code".

There is no function for sending activation code via SMS in this module. Maybe someone should add it.

Good Luck

from duo-psmodule.

ar-kaizen avatar ar-kaizen commented on August 26, 2024

That makes sense. Yeah, I was able to utilize duoSendSMSCode against my phone_id and I absolutely got the SMS with the code.

I was hoping duoCreateActivationCode would also send the activation/installation text messages you get from the web interface as it does return the activation_barcode and activation_url.

I suppose I could pull those attributes and include them in an email I'm already sending in the script.

It looks like based on the API documentation that opening the "activation_url" that was generated will also prompt the user to download and install (just tested and confirmed).

I don't think you can use the code sent via duoSendSMSCode to actually register the application with the application you're protecting with Duo. I think that's just for providing during the 2FA step when accessing the application.

I think I'll be sending the activation link in an onboarding email. Shouldn't be too cumbersome to open the email on their phone and click the link.

Either way, I think it would be great it the API did provide a way to also initiate the barcode and activation URLs into a text message like the web interface offers.

Edit: After re-reading the documentation it looks like the API does support sending an activation text message, but as you indicated, that's not built into the wrapper so could likely be accomplished. Just wanted to correct myself there!

Thanks for your advice!

from duo-psmodule.

WS-832 avatar WS-832 commented on August 26, 2024

You can simply copy the duoCreateActivation function and rename it to duoSendSMSActivation, then in the $path variable change /activation_url to /send_sms_activation

You'll need to open a new PowerShell session and import but that's about it.

from duo-psmodule.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.