public static string CheckForExtraQueryParameter(string url) { string extraQueryParameter = PlatformSpecificHelper.GetEnvironmentVariable("ExtraQueryParameter"); string delimiter = (url.IndexOf('?') > 0) ? "&" : "?"; if (!string.IsNullOrWhiteSpace(extraQueryParameter)) { url += string.Concat(delimiter, extraQueryParameter); } return(url); }
public AuthenticatorTemplateList() { string[] trustedHostList = { "login.windows.net", "login.chinacloudapi.cn", "login.cloudgovapi.us", "login.microsoftonline.com" }; string customAuthorityHost = PlatformSpecificHelper.GetEnvironmentVariable("customTrustedHost"); if (string.IsNullOrWhiteSpace(customAuthorityHost)) { foreach (string host in trustedHostList) { this.Add(AuthenticatorTemplate.CreateFromHost(host)); } } else { this.Add(AuthenticatorTemplate.CreateFromHost(customAuthorityHost)); } }
public AuthenticatorTemplateList() { string[] trustedHostList = { "login.windows.net", // Microsoft Azure Worldwide - Used in validation scenarios where host is not this list "login.chinacloudapi.cn", // Microsoft Azure China "login-us.microsoftonline.com", // Microsoft Azure US Government "login.microsoftonline.com" // Microsoft Azure Worldwide }; string customAuthorityHost = PlatformSpecificHelper.GetEnvironmentVariable("customTrustedHost"); if (string.IsNullOrWhiteSpace(customAuthorityHost)) { foreach (string host in trustedHostList) { this.Add(AuthenticatorTemplate.CreateFromHost(host)); } } else { this.Add(AuthenticatorTemplate.CreateFromHost(customAuthorityHost)); } }