Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added get_secret_key method to admin.py #266

Merged
merged 1 commit into from
May 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading