Comments (3)
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.
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.
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)
- how to delete cisco duo account with powershell
- Null Valued Expression HOT 4
- is there a way to use the duocreate user to modify the alias records(alias1, alias2) HOT 1
- Any plans to update for use with the Duo v2 API?
- duoDeleteUser = 20 chars required? HOT 1
- Multiple orgs HOT 1
- API Logs v2 HOT 1
- 'Resource not found' when running duoSyncUser HOT 1
- duoGetAdmin missing "Duo Push" field
- The Org: is not defined in the Duo_org.ps1 file
- Is it possible to delete a user with his email ID or username alone?
- Update-Help issue, any insight?
- Duo User Status
- Can't authenticate? HOT 2
- Duo_org.ps1 instruction incorrect
- Encryption sKey HOT 1
- device identifiers to Duo
- Invalid integration key in request credentials
- Add Alias
- duoCreateUser and duoDeleteUser throw 40301 errors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duo-psmodule.