Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ members = [
"crates/ogar-render-typst",
"crates/ogar-loco",
"crates/ogar-r2il",
"crates/ogar-rbac",
"crates/ogar-ro",
"crates/ogar-elk",
"crates/ogar-osm",
Expand Down
7 changes: 7 additions & 0 deletions crates/ogar-auth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ description = "OGAR auth arm: the reusable authentication SDK for OGAR consumers
# in-workspace sibling.
ogar-encryption = { path = "../ogar-encryption" }

# The canonical identity envelope (`auth::ActorContext`) this crate PRODUCES.
# Reused, never re-declared: a second (subject, tenant, roles) type is exactly
# the parallel identity normalizer the ownership ruling forbids. Downward dep
# only — the contract is zero-dep and never reaches back into OGAR. Same git
# pattern as `ogar-class-view`.
lance-graph-contract = { git = "https://github.com/AdaWorldAPI/lance-graph", branch = "claude/patient-identity-architecture-r8lhi5" }

# Argon2id PHC hash+verify (the login-credential path — distinct from the
# envelope KDF). Default features carry `password-hash` + `rand` (OsRng salt).
argon2 = "0.5"
Expand Down
9 changes: 9 additions & 0 deletions crates/ogar-auth/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
pub mod legacy;
pub mod password;
pub mod totp;
pub mod user;

// ── Forward suite: re-exported via `ogar-encryption` ────────────────────────
// Reused wholesale, never re-implemented (see crate docs). A consumer that
Expand Down Expand Up @@ -104,4 +105,12 @@ pub type AuthResult<T> = Result<T, AuthError>;
/// The adapter itself (token validation, JWKS fetch, claim mapping) lands as a
/// sibling crate under the `ogar-adapter-*` convention when the endgame is
/// scheduled — it is out of scope for the local auth substrate this crate is.
///
/// **The convergence point is now shipped**, as [`crate::user`]: an adapter's
/// job ends at producing an [`AuthBinding`](crate::user::AuthBinding), which
/// [`UserStore::resolve`](crate::user::UserStore::resolve) maps to the canonical
/// [`User`](crate::user::User); the envelope every path converges on is
/// [`AuthenticatedUser::actor_context`](crate::user::AuthenticatedUser::actor_context).
/// This module stays an empty marker: what is still out of scope here is
/// unchanged — token validation, JWKS fetch and claim parsing.
pub mod federation {}
Loading
Loading