正如我在标题中所说,我对 SecurityTokenRespone 有疑问。
IServiceManagement<IOrganizationService> serviceManagement = ServiceConfigurationFactory.CreateManagement<IOrganizationService>(new Uri("https://SERVICE_URI"));
AuthenticationCredentials authCreds = new AuthenticationCredentials();
authCreds.ClientCredentials.UserName.UserName = userName;
authCreds.ClientCredentials.UserName.Password = password;
AuthenticationCredentials tokenCreds = serviceManagement.Authenticate(authCreds);
SecurityTokenResponse securityToken = tokenCredentials.SecurityTokenResponse;
当我调用生产 CRM 时,我得到了 SecurityTokenRespone,但是当我调用我们的测试 CRM 时,SecurityTokenRespone 为空......
这是因为我们的生产 CRM 配置了 ADFS 而测试 CRM 没有配置吗?
如果是,是否可以通过某种方式绕过(我们的测试 CRM 位于无法暴露于互联网的域中)?
谢谢 :)