duosecurity / duo_client_python

Python library for interacting with the Duo Auth, Admin, and Accounts APIs
https://duo.com/docs/
Other
136 stars 136 forks source link

How to use duo_client_python to access an integrations secret key? #254

Closed Future-Jim closed 6 months ago

Future-Jim commented 9 months ago

The documentation here: https://duo.com/docs/adminapi#retrieve-secret-key states that duo_client_python should be used to access the endpoint /admin/v1/integrations/[integration_key]/skey.

However, I do not see this functionality in the duo_client_python repo.

Detailed Description

Include the method get_secret_key as per the documentation.

Use Case

This is useful for automation purposes, since without the secret key readily available via the API, manual interventions are required.

Workarounds

If Duo provides the authentication requirements for this endpoint, the workaround could be to manually generate the request instead of using the client.

NotJoePesci commented 6 months ago

@Future-Jim If you are still in need of this functionality my pull request to add it in was just merged to the master branch.

AaronAtDuo commented 6 months ago

PR that adds this convenience method has been added, and will be in the next release.