Ejemplo n.º 1
0
 public MsOAuthAppInfo(O365InstnaceType intanceType, string clientId, string clientSecret, string replyUrl, string state = "")
 {
     O365Instance  = intanceType;
     ClientID      = clientId;
     ClientSecret  = clientSecret;
     IsMultiTenant = false;
     ReplyUrl      = replyUrl;
     State         = state;
 }
Ejemplo n.º 2
0
        private string GetAuthEntryUrl(O365InstnaceType type)
        {
            string authEntry = "https://login.partner.microsoftonline.cn";

            if (type == O365InstnaceType.Global)
            {
                authEntry = "https://login.microsoftonline.com";
            }
            return(authEntry);
        }
Ejemplo n.º 3
0
        public string GetResourceUrl(O365InstnaceType type)
        {
            string resourceUrl = "https://microsoftgraph.chinacloudapi.cn";

            if (type == O365InstnaceType.Global)
            {
                resourceUrl = "https://graph.microsoft.com";
            }
            return(resourceUrl);
        }