Skip to content

feat: add async access policy and invariant evaluation - #106

Merged
mckaragoz merged 2 commits into
CodeBeamOrg:devfrom
mckaragoz:AsyncPolicyandInvariants
Oct 25, 2026
Merged

mckaragoz merged 2 commits into
CodeBeamOrg:devfrom
mckaragoz:AsyncPolicyandInvariants

Conversation

@mckaragoz

@mckaragoz mckaragoz commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #98

Introduce asynchronous authorization evaluation across the UltimateAuth access pipeline.

  • Add DecideAsync support to access policies, invariants, and authority.
  • Migrate internal authorization flows to async evaluation with cancellation support.
  • Preserve backward compatibility (except IAccessAuthority) with existing synchronous policy and invariant implementations.
  • Update Identity Lab policies to use asynchronous EF Core operations.
  • Update authorization unit and integration tests for the async pipeline.

Existing synchronous implementations remain supported through obsolete compatibility methods.

@codecov-commenter

codecov-commenter commented Oct 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.35294% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.08%. Comparing base (71123ad) to head (9aff821).

Files with missing lines Patch % Lines
...th.Core/Abstractions/Authority/IAccessAuthority.cs 0.00% 2 Missing ⚠️
...th.Core/Abstractions/Authority/IAccessInvariant.cs 0.00% 2 Missing ⚠️
...eAuth.Core/Abstractions/Authority/IAccessPolicy.cs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #106      +/-   ##
==========================================
- Coverage   86.11%   86.08%   -0.03%     
==========================================
  Files         665      668       +3     
  Lines       18378    18389      +11     
  Branches     2247     2247              
==========================================
+ Hits        15826    15831       +5     
- Misses       1802     1808       +6     
  Partials      750      750              

☔ 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 6723566 into CodeBeamOrg:dev Oct 25, 2026
3 checks passed
@mckaragoz
mckaragoz deleted the AsyncPolicyandInvariants branch October 31, 2026 15:39
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]: Support asynchronous access policies and invariants

2 participants