Repository navigation
Conversation
…hentication Architecture
Codecov Report❌ Patch coverage is Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR consolidates UltimateAuth's authentication architecture before the 0.2.0 stable release by introducing the Surrogate concept, unifying authentication terminology, and eliminating redundant abstractions.
A surrogate is secondary authentication data issued by an authentication authority to maintain authentication continuity without repeatedly exposing the original credential. Surrogates are represented by tokens, including authentication-capable session identifiers, access tokens, and refresh tokens.
The established token terminology is retained where it provides a familiar and intuitive developer experience.
Changes
Authentication Domain
SurrogateKindas the unified authentication artifact classification.Authentication Modes
Transport and Resolution
Configuration and Cleanup
Documentation
Breaking Changes
This PR intentionally introduces breaking API changes to establish a consistent and maintainable architectural foundation before the 0.2.0 stable release.
Obsolete APIs and redundant abstractions are removed rather than retained as compatibility layers.
Security
The architectural consolidation must preserve existing authentication guarantees, including tenant and device binding, session lineage validation, refresh token rotation, transport collision detection, CSRF protection, and metadata-only session identifier restrictions.
Goals