Skip to content

feat: support limit M2M usage - EA #1093

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

Merged
merged 12 commits into from
Jun 4, 2025

Conversation

kushalshit27
Copy link
Contributor

@kushalshit27 kushalshit27 commented May 13, 2025

🔧 Changes

This pull request introduces a new feature for managing token quotas in the auth0 toolset. It adds schema definitions for configuring token quota limits for both clients and organisations, and incorporates a reusable schema for tenant-level default token quota settings.

Example

Clients
clients:
  - name: M2M Limit App
   .................
    token_quota:
      client_credentials:
        enforce: true
        per_day: 2450
        per_hour: 100

📓 Note: Any application type where Grant Types Client Credentials are enabled can use token_quota

Tenant
tenant:
  .................
  default_token_quota:
    clients:
      client_credentials:
        enforce: false
        per_day: 2000
        per_hour: 50
    organizations:
      client_credentials:
        enforce: false
        per_day: 2500
        per_hour: 150
Organizations
organizations:
  - name: my-org
    display_name: my org
    ...............
    token_quota:
      client_credentials:
        per_hour: 100
        per_day: 2500
        enforce: true

📚 References

🔬 Testing

  • Added unit test

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@kushalshit27 kushalshit27 requested a review from a team as a code owner May 13, 2025 03:41
@codecov-commenter
Copy link

codecov-commenter commented May 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.11%. Comparing base (9aaeaa0) to head (fc49e71).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1093   +/-   ##
=======================================
  Coverage   80.11%   80.11%           
=======================================
  Files         131      131           
  Lines        4877     4878    +1     
  Branches      959      959           
=======================================
+ Hits         3907     3908    +1     
  Misses        562      562           
  Partials      408      408           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kushalshit27 kushalshit27 marked this pull request as draft May 13, 2025 04:02
@kushalshit27 kushalshit27 marked this pull request as ready for review May 15, 2025 06:07
@kushalshit27 kushalshit27 self-assigned this May 15, 2025
@kushalshit27 kushalshit27 requested a review from Copilot May 15, 2025 06:58
Copilot

This comment was marked as outdated.

ramya18101
ramya18101 previously approved these changes May 30, 2025
@kushalshit27 kushalshit27 changed the title feat: support limit M2M usage feat: support limit M2M usage [don't merge] May 30, 2025
@kushalshit27 kushalshit27 changed the title feat: support limit M2M usage [don't merge] feat: support limit M2M usage - EA [don't merge] May 31, 2025
@kushalshit27 kushalshit27 changed the title feat: support limit M2M usage - EA [don't merge] feat: support limit M2M usage - EA Jun 3, 2025
@kushalshit27 kushalshit27 merged commit b099101 into master Jun 4, 2025
8 checks passed
@kushalshit27 kushalshit27 deleted the DXCDT-953-limit-m2m-usage-support branch June 4, 2025 04:59
@kushalshit27 kushalshit27 mentioned this pull request Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants