pub struct AuthSpec {Show 23 fields
pub kind: String,
pub grant: Option<String>,
pub issuer: Option<String>,
pub token_url: Option<String>,
pub device_authorization_url: Option<String>,
pub authorization_url: Option<String>,
pub client_id: Option<String>,
pub client_secret: Option<String>,
pub scopes: Vec<String>,
pub audience: Option<String>,
pub token: Option<String>,
pub header: Option<String>,
pub value: Option<String>,
pub region: Option<String>,
pub service: Option<String>,
pub source: Option<String>,
pub sso_start_url: Option<String>,
pub account_id: Option<String>,
pub role_name: Option<String>,
pub svid: Option<String>,
pub jwt_svid_file: Option<String>,
pub svid_file: Option<String>,
pub key_file: Option<String>,
}Expand description
The runtime shape of a unified auth: credential provider. Every credential
input stays a {{secret:…}} template, so this struct rides the spawn payload
and appears in logs without ever carrying a live credential. kind is one of
static / oauth2 / aws / spiffe.
Fields§
§kind: String§grant: Option<String>§issuer: Option<String>§token_url: Option<String>§client_id: Option<String>§client_secret: Option<String>A {{secret:…}} template for a confidential client (never inline).
scopes: Vec<String>§audience: Option<String>§token: Option<String>static: a bearer token template.
header: Option<String>static: an arbitrary header name (with value).
value: Option<String>§region: Option<String>aws (SigV4): region, service (e.g. bedrock), and credential source
(env / static / sso / imds / irsa).
service: Option<String>§source: Option<String>§sso_start_url: Option<String>aws source: sso: IAM Identity Center start URL, account, role.
account_id: Option<String>§role_name: Option<String>§svid: Option<String>spiffe: SVID type (jwt/x509) + the SPIRE-written file paths.
jwt_svid_file: Option<String>§svid_file: Option<String>§key_file: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthSpec
impl<'de> Deserialize<'de> for AuthSpec
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
impl Eq for AuthSpec
impl StructuralPartialEq for AuthSpec
Auto Trait Implementations§
impl Freeze for AuthSpec
impl RefUnwindSafe for AuthSpec
impl Send for AuthSpec
impl Sync for AuthSpec
impl Unpin for AuthSpec
impl UnsafeUnpin for AuthSpec
impl UnwindSafe for AuthSpec
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