TF-4145 Add workplaceFqdn property in OidcUserInfo class

This commit is contained in:
dab246
2025-11-12 16:33:23 +07:00
committed by Dat H. Pham
parent 43de7edd47
commit 9483c98dd2
@@ -14,19 +14,26 @@ class OidcUserInfo with EquatableMixin {
final String? name; final String? name;
@JsonKey(name: 'preferred_username')
final String? preferredUsername;
@JsonKey(name: 'given_name') @JsonKey(name: 'given_name')
final String? givenName; final String? givenName;
@JsonKey(name: 'family_name') @JsonKey(name: 'family_name')
final String? familyName; final String? familyName;
final String? workplaceFqdn;
const OidcUserInfo({ const OidcUserInfo({
this.id, this.id,
this.sub, this.sub,
this.name, this.name,
this.preferredUsername,
this.givenName, this.givenName,
this.familyName, this.familyName,
this.email, this.email,
this.workplaceFqdn,
}); });
/// Factory for creating object from JSON /// Factory for creating object from JSON
@@ -41,8 +48,10 @@ class OidcUserInfo with EquatableMixin {
id, id,
sub, sub,
name, name,
preferredUsername,
givenName, givenName,
familyName, familyName,
email, email,
workplaceFqdn,
]; ];
} }