aboutsummaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api-spec/src/models.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-03 22:08:47 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-03 22:08:47 -0800
commitab4e1bbf2bb9bb67d6639b90a10970b54dd1aa03 (patch)
tree52f014e934471206baa51e3850ae5649d87787ab /rust/fatcat-api-spec/src/models.rs
parent03df0b8a6d1285fa4aa17e6c4216dd2716a9ac47 (diff)
downloadfatcat-ab4e1bbf2bb9bb67d6639b90a10970b54dd1aa03.tar.gz
fatcat-ab4e1bbf2bb9bb67d6639b90a10970b54dd1aa03.zip
allow passing prefered_username in oidc signup/login
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,
}
}
}