Skip to content

feat(production): Implement PureJwt Authentication & Unify Authentication Architecture - #172

Merged
mckaragoz merged 30 commits into
CodeBeamOrg:devfrom
mckaragoz:PureJwtImplementation
Nov 21, 2026
Merged

mckaragoz merged 30 commits into
CodeBeamOrg:devfrom
mckaragoz:PureJwtImplementation

Conversation

@mckaragoz

@mckaragoz mckaragoz commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR introduces PureJwt authentication and completes a major authentication architecture update for UltimateAuth v0.2.0.

The implementation separates authentication modes, application profiles, and credential delivery while preserving UltimateAuth's unified, flow-based authentication model.

What's Changed

Authentication Architecture

  • Implemented PureJwt with stateless JWT access tokens and stateful refresh-token chains.
  • Added authentication mode resolution with global and application-profile-specific configuration.
  • Renamed Client Profile to Application Profile across public APIs, server/client integrations, JavaScript, and documentation.
  • Redesigned credential delivery and redirect configuration with GrantDelivery and Redirect.

Security & Token Lifecycle

  • Added JWT signing and verification with explicit cryptographic key configuration.
  • Separated JWT signing keys from token-hashing keys.
  • Implemented PureJwt refresh-token rotation, replay protection, device binding, and refresh-chain revocation on logout.
  • Updated Resource API authentication to support local JWT validation.

Persistence & Integrations

  • Extended refresh-token persistence to support session-independent refresh chains.
  • Updated EF Core and in-memory stores, including database migrations.
  • Updated Blazor client integrations, JavaScript transport, and minified assets.
  • Updated samples and Identity Lab for the revised authentication contracts.

Documentation & Tests

  • Expanded the v0.2.0 migration guide with a public API migration table and detailed behavioral changes.
  • Updated authentication modes, application profiles, configuration, security, and authentication flow documentation.
  • Regenerated documentation JSON assets.
  • Added and updated unit, integration, and JavaScript tests.

Breaking Changes

This PR includes breaking changes to application-profile APIs, authentication response configuration, refresh-token persistence, and selected Resource API options.

Production deployments must review cryptographic key configuration and apply the required database migrations.

Notes

  • PureJwt access tokens are stateless; refresh tokens remain stateful and revocable.
  • Previously issued JWT access tokens remain valid until expiration unless additional revocation controls are applied.
  • SemiHybrid remains unsupported.
  • Existing applications using built-in integrations should require minimal changes beyond the documented migration requirements.

@codecov

codecov Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.20%. Comparing base (8337fa6) to head (d05df71).
⚠️ Report is 2 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #172      +/-   ##
==========================================
+ Coverage   88.00%   88.20%   +0.19%     
==========================================
  Files         595      610      +15     
  Lines       19495    20416     +921     
  Branches     2273     2456     +183     
==========================================
+ Hits        17156    18007     +851     
- Misses       1523     1545      +22     
- Partials      816      864      +48     
Flag Coverage Δ
framework 88.20% <ø> (+0.19%) ⬆️

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 changed the title feat(production): Introduce PureJwt Auth Mode feat(production): Implement PureJwt Authentication & Unify Authentication Architecture Nov 21, 2026
@mckaragoz
mckaragoz merged commit 7b4190a into CodeBeamOrg:dev Nov 21, 2026
7 checks passed
mckaragoz added a commit that referenced this pull request Nov 25, 2026
* feat(reliability): Add Device Limits - #171⁠

feat(reliability): Add Device Limits

* Add cryptography keys to Docker Compose configuration

* feat(production): Implement PureJwt Authentication & Unify Authentication Architecture (#172)

* feat(production): Introduce PureJwt Auth Mode

* Login Implementation

* Fix Tests

* Add Tests

* Independent and Per ClientProfile AuthMode Options Design

* User Validation Arrangement & Tests

* Stateless Flow Arrangements

* Fix & Add Tests

* Validate & Logout Flow

* New Design of Mode Options

* Fix Grant Resolvers

* Fix Validate Snapshot

* JWT & Refresh Token Signing/Hashing Key Seperation

* PureJwt Refresh Implementation - Part 1

* PureJwt Refresh Implementation - Part 2

* Fix & Add Tests

* Try Resource API Support in PureJwt Auth Mode

* Resource API Implementation - Part 2

* Fix Tests

* Fix Refresh Chain Revoke on Logout on PureJwt

* Device Mismatch Arrangements & Add Tests for Missing Coverage

* More Breaking Changes

* More Improvements

* Fix Authorization & Add Tests

* Add Tests

* DX Improvements

* Add Docs

* Identity Lab Crypthography Implementation

* Last Arrangements

* Added Some Other Migration Explanation

* feat(client): Manage Access Token When Transport with Header (#175)

* feat(client): Manage Access Token When Transport with Header

* Add Transport Protocol for Bearer Token

* Add SendJson Token Transport

* Fix Antiforgery

* Login Arrangements

* Fix Tests

* Fix javascript Tests

* Add Authentication Recovery

* Fix Diagnostics on Login

* Add CORS Options

* PKCE Login Token Implementation

* Arrange ApplicationProfile Defaults

* Fix Tests

* Add Docs

* Implement Smoke Test Failure Fixes

* Add Tests

* Add Tests

* .NET 11 Support (#178)

* .NET 11 Support

* Fix CI

* Update Docs Builder

* Update Client JsMinifier

* Some Arrangements

* Fix Test

* Update 0.2.0-preview.4
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.

1 participant