pub struct IdentityResolvePayload {
pub raw_token: String,
pub source: String,
pub headers: HashMap<String, String>,
pub client_host: Option<String>,
pub client_port: Option<u16>,
}Expand description
identity_resolve — mirrors IdentityPayload.
raw_token is SecretStr on the Python side and redacts on serialization,
so the value that travels in this field is a placeholder, never the real
token. The plaintext rides the separate capability-gated credential
object on the task (see the credentials module) and the worker folds it
back onto the payload before calling the plugin.
Debug is hand-written — see the module docs.
Fields§
§raw_token: StringRedacted on the wire. Populated from the credential object by the
worker, not from this field.
source: StringHow the credential was presented — bearer, custom, and so on.
headers: HashMap<String, String>Headers the credential arrived in. Not a SecretStr on the Python
side, so the worker scrubs the plaintext out of these values before a
plugin can echo them back.
client_host: Option<String>§client_port: Option<u16>Trait Implementations§
Source§impl Clone for IdentityResolvePayload
impl Clone for IdentityResolvePayload
Source§impl Debug for IdentityResolvePayload
impl Debug for IdentityResolvePayload
Source§impl Default for IdentityResolvePayload
impl Default for IdentityResolvePayload
Source§impl<'de> Deserialize<'de> for IdentityResolvePayload
impl<'de> Deserialize<'de> for IdentityResolvePayload
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
Source§impl PluginPayload for IdentityResolvePayload
impl PluginPayload for IdentityResolvePayload
Source§fn clone_boxed(&self) -> Box<dyn PluginPayload>
fn clone_boxed(&self) -> Box<dyn PluginPayload>
Clone this payload into a new
Box<dyn PluginPayload>. Read moreSource§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Downcast to a concrete type via
&mut dyn Any.Auto Trait Implementations§
impl Freeze for IdentityResolvePayload
impl RefUnwindSafe for IdentityResolvePayload
impl Send for IdentityResolvePayload
impl Sync for IdentityResolvePayload
impl Unpin for IdentityResolvePayload
impl UnsafeUnpin for IdentityResolvePayload
impl UnwindSafe for IdentityResolvePayload
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