Skip to content

fix(jans-config-api): getting 401 Unauthorized for /jans-config-api/api/v1/stat #10800

@duttarnab

Description

@duttarnab

Describe the bug

When making the request to /jans-config-api/api/v1/stat with authorization token containing jans_stat and https://jans.io/oauth/config/stats.readonly scopes, getting 401 Unauthorized.

To Reproduce
Steps to reproduce the behavior:

  1. Test GET https://{jans-hostname}/jans-config-api/api/v1/stat?month=202502&format=json with authorization token containing jans_stat and https://jans.io/oauth/config/stats.readonly scopes
  2. We can also introspect the authorization token to verify that the scopes required for /jans-config-api/api/v1/stat are present
  3. The response is 401 Unauthorized.

Expected behavior
The stat endpoint should work and should stat data.

Screenshots

Image

Image

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Browser Chrome, Firfox
  • Flex Version : Nightly

Metadata

Metadata

Assignees

Labels

comp-jans-config-apiComponent affected by issue or PRkind-bugIssue or PR is a bug in existing functionalitykind-featureIssue or PR is a new feature request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions