C# 如何扩展maxclockskew以在';Thinktecture.IdentityModel.WSTrust&x27;使用';UserNameWSTrustBinding';?

C# 如何扩展maxclockskew以在';Thinktecture.IdentityModel.WSTrust&x27;使用';UserNameWSTrustBinding';?,c#,wif,thinktecture,C#,Wif,Thinktecture,我使用下面的代码和平来通过STS使用UserNameWSTrustBinding发布安全令牌。 如果客户端日期时间满足默认的5分钟时钟,则此代码可以正常工作。我应该做些什么来增加这个时间跨度,以改善STS日期和时间不同步的其他客户的情况 var credentials = new ClientCredentials(); credentials.UserName.UserName = "username"; credentials.UserName.Passwo

我使用下面的代码和平来通过STS使用UserNameWSTrustBinding发布安全令牌。 如果客户端日期时间满足默认的5分钟时钟,则此代码可以正常工作。我应该做些什么来增加这个时间跨度,以改善STS日期和时间不同步的其他客户的情况

 var credentials = new ClientCredentials();
        credentials.UserName.UserName = "username";
        credentials.UserName.Password = "password";

        var stsAddress = System.Configuration.ConfigurationManager.AppSettings["ida:STSAddress"];
        var realm = System.Configuration.ConfigurationManager.AppSettings["ida:Realm"];

        var token = WSTrustClient.Issue(
            new EndpointAddress(stsAddress),
            new EndpointAddress(realm),
            UserNameWSTrustBinding(SecurityMode.TransportWithMessageCredential), 
            credentials);

        return token.ToTokenXmlString(); 
我按照下面链接中的说明操作,但没有解决问题。