Giter Club home page Giter Club logo

Comments (4)

JohnDuprey avatar JohnDuprey commented on September 18, 2024

It depends on what API you're targeting. If you're a Duo Partner and need to access child accounts, you'll need the Accounts API. If you just want to modify settings in your own Duo tenant you need the Admin API. If you want to send push notifications, use the Auth API.

If you look at the Public folder in the DuoSecurity module in GitHub, you'll see that each API is segmented into their respective folders. The only exception to this is the Accounts API as it's just a wrapper around the Admin API.

from duosecurity.

mpunderw avatar mpunderw commented on September 18, 2024

Thanks for the info, I feel like there's a bunch of prereq information that I'm missing.

I'm trying to pull a basic list of users from our own Duo tenant, I run the Set-DuoApiAuth using Type Admin and when I run Get-DuoUsers, I get 40102 Invalid identity in request credentials FAIL. I've used the integration key and secret from the Auth API and from the Duo API applications and both get the same error.

from duosecurity.

JohnDuprey avatar JohnDuprey commented on September 18, 2024

The Auth API is specifically for sending push notifications, it does not work for anything else. You'll need to create an Admin API application and enable the correct settings.

This should point you in the right direction:
https://duo.com/docs/adminapi#first-steps

from duosecurity.

mpunderw avatar mpunderw commented on September 18, 2024

I have figured out the issue, we weren't using the Admin API. Once enabled and given the correct permissions the PowerShell module started returning the correct information. This issue can be closed.

from duosecurity.

Related Issues (8)

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.