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

fix: jans-config-api /stat does not require month #2458

Closed
devrimyatar opened this issue Sep 24, 2022 · 1 comment · Fixed by #2459
Closed

fix: jans-config-api /stat does not require month #2458

devrimyatar opened this issue Sep 24, 2022 · 1 comment · Fixed by #2459
Assignees
Labels
comp-jans-config-api Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality

Comments

@devrimyatar
Copy link
Contributor

Describe the bug
When querying /jans-config-api/api/v1/stat parameter month is not mandatory.

@devrimyatar devrimyatar added kind-bug Issue or PR is a bug in existing functionality comp-jans-config-api Component affected by issue or PR labels Sep 24, 2022
@devrimyatar devrimyatar self-assigned this Sep 24, 2022
@devrimyatar
Copy link
Contributor Author

See sample query

https --verify=no -A bearer -a eyJraWQiOiIxNGF...D3HNAxB5COw "https://snap.gluu.org/jans-config-api/api/v1/stat?start_month=202208&end_month=202209"
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 212
Content-Type: application/json
Date: Sat, 24 Sep 2022 11:45:08 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.41 (Ubuntu)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block

[
    {
        "month": "202209",
        "monthly_active_users": 1,
        "token_count_per_granttype": {
            "client_credentials": {
                "access_token": 9
            },
            "urn:ietf:params:oauth:grant-type:device_code": {
                "access_token": 1,
                "id_token": 1,
                "refresh_token": 1
            }
        }
    }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-config-api Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant