aboutsummaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api-spec/src/models.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/fatcat-api-spec/src/models.rs')
-rw-r--r--rust/fatcat-api-spec/src/models.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/rust/fatcat-api-spec/src/models.rs b/rust/fatcat-api-spec/src/models.rs
index 8c17cf66..536bdd24 100644
--- a/rust/fatcat-api-spec/src/models.rs
+++ b/rust/fatcat-api-spec/src/models.rs
@@ -19,14 +19,18 @@ pub struct AuthOidc {
#[serde(rename = "iss")]
pub iss: String,
+
+ #[serde(rename = "preferred_username")]
+ pub preferred_username: String,
}
impl AuthOidc {
- pub fn new(provider: String, sub: String, iss: String) -> AuthOidc {
+ pub fn new(provider: String, sub: String, iss: String, preferred_username: String) -> AuthOidc {
AuthOidc {
provider: provider,
sub: sub,
iss: iss,
+ preferred_username: preferred_username,
}
}
}