Skip to content

Commit

Permalink
Added get_secret_key method to admin.py (#266)
Browse files Browse the repository at this point in the history
Added a get_secret_key method to call the get_secret_key Admin v1 endpoint. Per Issue 254
  • Loading branch information
NotJoePesci committed May 8, 2024
1 parent cf998c9 commit 89326e3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions duo_client/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2650,6 +2650,23 @@ def create_integration(self,
)
return response

def get_secret_key (self, integration_key):
"""Returns the secret key of the specified integration.
integration_key - The ikey of the secret key to get.
Returns the skey
Raises RuntimeError on error.
"""
params = {}
response = self.json_api_call(
'GET',
'/admin/v1/integrations/' + integration_key + '/skey',
params,
)
return response

def delete_integration(self, integration_key):
"""Deletes an integration.
Expand Down

0 comments on commit 89326e3

Please sign in to comment.