pub struct OAuthRequest {
pub provider: String,
pub app_id: String,
pub email: String,
pub profile: Value,
pub user: Value,
}Expand description
Input to the OAuth claims pipeline.
Serialize + Deserialize derives carry the wire shape
(cross-component hook chains via WIT, bincode payload). The two
Value fields (profile, user) ride the wire as JSON-encoded strings to
sidestep bincode’s DeserializeAnyNotSupported; the Rust API still
holds them as Value for ergonomic in-process use.
Fields§
§provider: StringProvider name as registered in [package.metadata.auth.oauth]
(e.g. "google", "github", "okta").
app_id: StringApp id the user is authenticating against. Empty string for global / no-app authentication.
email: StringEmail resolved from the provider response (lowercased).
profile: ValueRaw provider profile JSON (claims, profile, etc.).
user: ValueIn-flight User row — plugins mutate this in place via the
pipeline. Yeti’s canonical fields (username, email,
passwordHash, active, createdAt, updatedAt) are
populated by the host before the pipeline runs.
Trait Implementations§
Source§impl Clone for OAuthRequest
impl Clone for OAuthRequest
Source§fn clone(&self) -> OAuthRequest
fn clone(&self) -> OAuthRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more