Owin Twitter login - the remote certificate is invalid according to the validation procedure

前端 未结 8 1835
攒了一身酷
攒了一身酷 2020-12-02 05:37

I started getting this error recently when trying to login using twitter- any idea why?

Stack Trace: 


[AuthenticationException: The remote certificate is i         


        
相关标签:
8条回答
  • 2020-12-02 06:34

    Turn off Fiddler.

    Somehow Fiddler web debugger messes up the Oauth for Twitter.

    0 讨论(0)
  • 2020-12-02 06:34

    For testing purposes only (!) it is also possible to set the

    options.BackchannelCertificateValidator = null;
    

    and add to your Global.asax Application_Start:

    ServicePointManager.ServerCertificateValidationCallback = delegate 
    { 
        return true; 
    };
    
    0 讨论(0)
提交回复
热议问题