The SamlSecurityToken is rejected because the SamlAssertion.NotBefore condition is not satisfied.
ID4222: The SamlSecurityToken is rejected because the SamlAssertion.NotBefore condition is not satisfied.
NotBefore: '2015/1/12 2:26:48'
Current time: '2015/1/12 2:11:35'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IdentityModel.Tokens.SecurityTokenNotYetValidException: ID4222: The SamlSecurityToken is rejected because the SamlAssertion.NotBefore condition is not satisfied.
NotBefore: '2015/1/12 2:26:48'
Current time: '2015/1/12 2:11:35'
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[SecurityTokenNotYetValidException: ID4222: The SamlSecurityToken is rejected because the SamlAssertion.NotBefore condition is not satisfied. NotBefore: '2015/1/12 2:26:48' Current time: '2015/1/12 2:11:35'] System.IdentityModel.Tokens.SamlSecurityTokenHandler.ValidateToken(SecurityToken token) +1069850 System.IdentityModel.Tokens.SecurityTokenHandlerCollection.ValidateToken(SecurityToken token) +135 System.IdentityModel.Services.TokenReceiver.AuthenticateToken(SecurityToken token, Boolean ensureBearerToken, String endpointUri) +117 System.IdentityModel.Services.WSFederationAuthenticationModule.SignInWithResponseMessage(HttpRequestBase request) +698 System.IdentityModel.Services.WSFederationAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args) +123924 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165 |
以上报错,是因为网站与后台服务器(如:用户验证服务器)的时间不同步所导致。
处理方案:同步两者前的时间。
方法:重新启动"Windows 时间"服务,然后打开一个命令提示符并键入 w32tm /resync
如果觉得此文有所帮助,可以打赏点钱给我支付宝l_junfei@163.com

浙公网安备 33010602011771号