internal void UpdateTenantAndUserInfo(string tenantId, string idToken, AdalUserInfo userInfo) { this.TenantId = tenantId; this.IdToken = idToken; if (userInfo != null) { this.UserInfo = new AdalUserInfo(userInfo); } }
/// <summary> /// Create user information copied from another UserInfo object /// </summary> public AdalUserInfo(AdalUserInfo other) { if (other != null) { this.UniqueId = other.UniqueId; this.DisplayableId = other.DisplayableId; this.GivenName = other.GivenName; this.FamilyName = other.FamilyName; this.IdentityProvider = other.IdentityProvider; this.PasswordChangeUrl = other.PasswordChangeUrl; this.PasswordExpiresOn = other.PasswordExpiresOn; } }
/// <summary> /// Create user information for token cache lookup /// </summary> internal UserInfo(AdalUserInfo adalUserInfo) : this(adalUserInfo?.UniqueId, adalUserInfo?.DisplayableId, adalUserInfo?.GivenName, adalUserInfo?.FamilyName, adalUserInfo?.IdentityProvider, adalUserInfo?.PasswordChangeUrl, adalUserInfo?.PasswordExpiresOn) { }