pub struct OidcClaims {
pub subject: String,
pub issuer: String,
pub audience: Vec<String>,
pub expires_at: i64,
pub issued_at: i64,
pub email: Option<String>,
pub github: Option<GithubClaims>,
pub raw: HashMap<String, Value>,
}Expand description
Claims extracted from a verified OIDC token. The fields are the minimum the Fulcio-style CA needs to bind to the joint ephemeral threshold key.
Fields§
§subject: StringSubject — stable identifier for the signer at the issuer.
issuer: StringIssuer URL.
audience: Vec<String>Audience — who the token was issued for.
expires_at: i64Expiry (Unix epoch seconds).
issued_at: i64Issued-at (Unix epoch seconds).
email: Option<String>Email claim, if present (Google, Okta, Azure AD).
github: Option<GithubClaims>GitHub-specific claims: repository, workflow, ref, etc.
raw: HashMap<String, Value>All raw claims, for callers that need fields not exposed above.
Trait Implementations§
Source§impl Clone for OidcClaims
impl Clone for OidcClaims
Source§fn clone(&self) -> OidcClaims
fn clone(&self) -> OidcClaims
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 OidcClaims
impl Debug for OidcClaims
Source§impl<'de> Deserialize<'de> for OidcClaims
impl<'de> Deserialize<'de> for OidcClaims
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OidcClaims
impl RefUnwindSafe for OidcClaims
impl Send for OidcClaims
impl Sync for OidcClaims
impl Unpin for OidcClaims
impl UnsafeUnpin for OidcClaims
impl UnwindSafe for OidcClaims
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