public MsOAuthAppInfo(O365InstnaceType intanceType, string clientId, string clientSecret, string replyUrl, string state = "") { O365Instance = intanceType; ClientID = clientId; ClientSecret = clientSecret; IsMultiTenant = false; ReplyUrl = replyUrl; State = state; }
private string GetAuthEntryUrl(O365InstnaceType type) { string authEntry = "https://login.partner.microsoftonline.cn"; if (type == O365InstnaceType.Global) { authEntry = "https://login.microsoftonline.com"; } return(authEntry); }
public string GetResourceUrl(O365InstnaceType type) { string resourceUrl = "https://microsoftgraph.chinacloudapi.cn"; if (type == O365InstnaceType.Global) { resourceUrl = "https://graph.microsoft.com"; } return(resourceUrl); }