diff --git a/model/lib/oidc/response/oidc_user_info.dart b/model/lib/oidc/response/oidc_user_info.dart index 2f202d6af..16d791a76 100644 --- a/model/lib/oidc/response/oidc_user_info.dart +++ b/model/lib/oidc/response/oidc_user_info.dart @@ -14,19 +14,26 @@ class OidcUserInfo with EquatableMixin { final String? name; + @JsonKey(name: 'preferred_username') + final String? preferredUsername; + @JsonKey(name: 'given_name') final String? givenName; @JsonKey(name: 'family_name') final String? familyName; + final String? workplaceFqdn; + const OidcUserInfo({ this.id, this.sub, this.name, + this.preferredUsername, this.givenName, this.familyName, this.email, + this.workplaceFqdn, }); /// Factory for creating object from JSON @@ -41,8 +48,10 @@ class OidcUserInfo with EquatableMixin { id, sub, name, + preferredUsername, givenName, familyName, email, + workplaceFqdn, ]; }