pub enum OpenIdentity {
Credentialless,
ServiceCredentials {
token_id: String,
secret: SecretString,
},
CatalogCredentials {
username: String,
password: SecretString,
},
}Expand description
The identity requested when attaching a shared handle (spec §2.2).
Catalog credentials are verified against the live shared catalog before a handle is issued. Service credentials are verified against the core’s service-principal store (P0.1). The secret allocation is zeroized when attach returns.
Callers cannot supply a permission vector on open — that was the P0.1
authority gap (ScopedServicePrincipal). Service authority is assigned
only by admin registration on the shared core.
Variants§
Credentialless
Attach without credentials. Rejected (fail closed) when the database
catalog has require_auth enabled.
ServiceCredentials
Authenticate one registered service principal by token id + secret.
CatalogCredentials
Authenticate one catalog user on the existing shared core.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenIdentity
impl RefUnwindSafe for OpenIdentity
impl Send for OpenIdentity
impl Sync for OpenIdentity
impl Unpin for OpenIdentity
impl UnsafeUnpin for OpenIdentity
impl UnwindSafe for OpenIdentity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more