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. The worker knows the hook as
identity_resolve.
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>,
Source§impl PluginPayload for IdentityResolvePayload
impl PluginPayload for IdentityResolvePayload
Source§fn clone_boxed(&self) -> Box<dyn PluginPayload>
fn clone_boxed(&self) -> Box<dyn PluginPayload>
Box<dyn PluginPayload>. Read moreSource§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
&mut dyn Any.