pub struct OidcMachineIdentity {
pub platform: String,
pub subject: String,
pub token_exp: i64,
pub issuer: String,
pub audience: String,
pub jti: Option<String>,
pub normalized_claims: Map<String, Value>,
}Expand description
Machine identity created from an OIDC token.
Contains the binding proof (issuer, subject, audience, expiration) so verifiers can reconstruct the identity later without needing the ephemeral key.
Fields§
§platform: StringPlatform (github, gitlab, circleci)
subject: StringSubject claim (unique workload identifier)
token_exp: i64Token expiration
issuer: StringIssuer
audience: StringAudience
jti: Option<String>JTI for replay detection
normalized_claims: Map<String, Value>Platform-normalized claims
Trait Implementations§
Source§impl Clone for OidcMachineIdentity
impl Clone for OidcMachineIdentity
Source§fn clone(&self) -> OidcMachineIdentity
fn clone(&self) -> OidcMachineIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OidcMachineIdentity
impl Debug for OidcMachineIdentity
Source§impl From<&OidcMachineIdentity> for OidcBinding
impl From<&OidcMachineIdentity> for OidcBinding
Source§fn from(mi: &OidcMachineIdentity) -> Self
fn from(mi: &OidcMachineIdentity) -> Self
The one conversion from a validated machine identity to the signature-covered wire binding — every signing path uses this, so the two shapes can never drift.
Auto Trait Implementations§
impl Freeze for OidcMachineIdentity
impl RefUnwindSafe for OidcMachineIdentity
impl Send for OidcMachineIdentity
impl Sync for OidcMachineIdentity
impl Unpin for OidcMachineIdentity
impl UnsafeUnpin for OidcMachineIdentity
impl UnwindSafe for OidcMachineIdentity
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