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

add get auth summary endpoint to the admin object #268

Open
ClovisIRex opened this issue Jun 13, 2024 · 1 comment
Open

add get auth summary endpoint to the admin object #268

ClovisIRex opened this issue Jun 13, 2024 · 1 comment

Comments

@ClovisIRex
Copy link

ClovisIRex commented Jun 13, 2024

Detailed Description

there is an auth summary page in the app that provides general summary of all denied/granted requests across a time range. the API endpoint is /reports/auth-summary. it seems it does not exist in the client nor in the documentation.

Use Case

We need that data in order to produce automated reports with a in-house tool. instead of gathering 100's of thousands or even millions of data from other endpoints and summating it we would rather use that endpoint

Workarounds

Im trying to extend the Admin class with a method but getting 301 moved permanently error code:

from duo_client import Admin

class Extended_duo_client(Admin):

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

    def get_auth_summary(self):
        params = {}
        response = self.json_api_call(
            'GET',
            '/reports/auth-summary',
            params
        ) 

        return response
@MarkTripod-Duo
Copy link
Contributor

@ClovisIRex The /reports URL accessible via the Duo Admin Panel does not exist as an API endpoint. Making the /reports/auth-summary information available via the API would be new/expanded functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants