Skip to content

feat(users): add configurable identifier limits and Identity Lab capacity indicator - #129

Merged
mckaragoz merged 2 commits into
CodeBeamOrg:devfrom
mckaragoz:IdentifierLimit
Oct 31, 2026
Merged

mckaragoz merged 2 commits into
CodeBeamOrg:devfrom
mckaragoz:IdentifierLimit

Conversation

@mckaragoz

Copy link
Copy Markdown
Contributor

Summary

Closes #121.

Introduce configurable per-user identifier limits to prevent uncontrolled identifier growth.

Changes

  • Add MaxIdentifiersPerUser with a default limit of 10 active identifiers.
  • Support optional MaxIdentifiersPerType limits without imposing per-type defaults.
  • Exclude soft-deleted identifiers from active limits.
  • Enforce limits for both self-service and administrative operations.
  • Add validation and regression tests for identifier limits.
  • Display identifier usage (e.g., 3/10) in Identity Lab.
  • Update server configuration, Users domain, and Client SDK documentation.

@codecov

codecov Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.67347% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.74%. Comparing base (fb0e7fa) to head (e94b695).

Files with missing lines Patch % Lines
...ators/UAuthServerUserIdentifierOptionsValidator.cs 53.84% 3 Missing and 3 partials ⚠️
...Users.Reference/Services/UserApplicationService.cs 93.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #129      +/-   ##
==========================================
- Coverage   86.75%   86.74%   -0.02%     
==========================================
  Files         681      681              
  Lines       18900    18946      +46     
  Branches     2291     2305      +14     
==========================================
+ Hits        16396    16434      +38     
- Misses       1760     1764       +4     
- Partials      744      748       +4     
Flag Coverage Δ
framework 86.74% <83.67%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

@mckaragoz
mckaragoz merged commit 40278e6 into CodeBeamOrg:dev Oct 31, 2026
6 checks passed
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.

[Feature]: Add configurable per-user identifier limits

1 participant