diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-03 22:08:47 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-03 22:08:47 -0800 |
commit | ab4e1bbf2bb9bb67d6639b90a10970b54dd1aa03 (patch) | |
tree | 52f014e934471206baa51e3850ae5649d87787ab /rust/fatcat-api-spec/src | |
parent | 03df0b8a6d1285fa4aa17e6c4216dd2716a9ac47 (diff) | |
download | fatcat-ab4e1bbf2bb9bb67d6639b90a10970b54dd1aa03.tar.gz fatcat-ab4e1bbf2bb9bb67d6639b90a10970b54dd1aa03.zip |
allow passing prefered_username in oidc signup/login
Diffstat (limited to 'rust/fatcat-api-spec/src')
-rw-r--r-- | rust/fatcat-api-spec/src/models.rs | 6 |
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, } } } |