/// <summary> /// Constructor /// </summary> /// <param name="homeAccountId">Home account id in "uid.utid" format; can be null, for example when migrating the ADAL v3 cache</param> /// <param name="username">UPN style , can be null</param> /// <param name="environment">Identity provider for this account, e.g. <c>login.microsoftonline.com</c></param> /// <param name="wamAccountIds">Map of (client_id, wam_account_id)</param> public Account(string homeAccountId, string username, string environment, IDictionary <string, string> wamAccountIds = null) { Username = username; Environment = environment; HomeAccountId = AccountId.ParseFromString(homeAccountId); _wamAccountIds = wamAccountIds; }
/// <summary> /// Constructor /// </summary> /// <param name="homeAccountId">Home account id in "uid.utid" format; can be null, for example when migrating the ADAL v3 cache</param> /// <param name="username">UPN style , can be null</param> /// <param name="environment">Identity provider for this account, e.g. <c>login.microsoftonline.com</c></param> /// <param name="wamAccountIds">Map of (client_id, wam_account_id)</param> /// <param name="tenantProfiles">Map of (tenant_id, tenant_profile)</param> public Account( string homeAccountId, string username, string environment, IDictionary <string, string> wamAccountIds = null, IEnumerable <TenantProfile> tenantProfiles = null) { Username = username; Environment = environment; HomeAccountId = AccountId.ParseFromString(homeAccountId); WamAccountIds = wamAccountIds; TenantProfiles = tenantProfiles; }
/// <summary> /// Constructor /// </summary> /// <param name="homeAccountId">Home account id in "uid.utid" format; can be null, for example when migrating the ADAL v3 cache</param> /// <param name="username">UPN style , can be null</param> /// <param name="environment">Identity provider for this account, e.g. <c>login.microsoftonline.com</c></param> public Account(string homeAccountId, string username, string environment) { Username = username; Environment = environment; HomeAccountId = AccountId.ParseFromString(homeAccountId); }