duo_client_python icon indicating copy to clipboard operation
duo_client_python copied to clipboard

How to use duo_client_python to access an integrations secret key?

Open Future-Jim opened this issue 1 year ago • 1 comments
trafficstars

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.

Future-Jim avatar Feb 16 '24 14:02 Future-Jim

@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.

NotJoePesci avatar May 10 '24 18:05 NotJoePesci

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

AaronAtDuo avatar May 24 '24 19:05 AaronAtDuo