Coder Social home page Coder Social logo

Error - {"code": 40101, "message": "Missing request credentials", "stat": "FAIL"} How to resolve it? about duo_client_python HOT 4 CLOSED

duosecurity avatar duosecurity commented on September 3, 2024
Error - {"code": 40101, "message": "Missing request credentials", "stat": "FAIL"} How to resolve it?

from duo_client_python.

Comments (4)

AaronAtDuo avatar AaronAtDuo commented on September 3, 2024 1

@RobinMalhotraa Perhaps you did not include it here, but I don't see any code that handles the signing of the request, which is required by the Admin API: https://duo.com/docs/adminapi#authentication

I would recommend that you use our Java client library, also available on Github, because it can handle the signing of the request for you. You can see some examples of how to use it at https://github.com/duosecurity/duo_client_java/blob/master/duo-example-admin/src/main/java/com/duosecurity/example/DuoAdmin.java

from duo_client_python.

AaronAtDuo avatar AaronAtDuo commented on September 3, 2024

The example at https://github.com/duosecurity/duo_client_java/blob/master/duo-example-admin/src/main/java/com/duosecurity/example/DuoAdmin.java#L120 shows how to fetch multiple users, it should be very similar to what you need. That's probably the best example to follow.

from duo_client_python.

RobinMalhotraa avatar RobinMalhotraa commented on September 3, 2024

Thanks for this but the problem is Java is really new for me.

from duo_client_python.

AaronAtDuo avatar AaronAtDuo commented on September 3, 2024

I understand how it is when you're trying to pick up a new language, hope it goes well for you. Trying to use our Java API to learn on is probably a more difficult early step than you want though, it's a little tricky to use.

I might suggest a 'live' API explorer like Google's (https://developers.google.com/explorer-help/guides/code_samples) that might be more suitable for getting familiar with API clients.

from duo_client_python.

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.