DotNetOpenAuth: Message signature was incorrect

后端 未结 3 1869
时光取名叫无心
时光取名叫无心 2021-01-11 19:40

I\'m getting a \"Message signature was incorrect\" exception when trying to authenticate with MyOpenID and Yahoo.

I\'m using pretty much the ASP.NET MVC sample code

3条回答
  •  别那么骄傲
    2021-01-11 20:19

    We fixed this issue by implementing IRelyingPartyApplicationStore (IOpenIdApplicationStore in newer versions of DotNetOpenAuth) and adding the store class name to the .config

    
      
        
          ...
          
        
      
      ...
    
    

    The interface is a composition of two other interfaces with five members all together.

    /// 
    /// A hybrid of the store interfaces that an OpenID Provider must implement, and
    /// an OpenID Relying Party may implement to operate in stateful (smart) mode.
    /// 
    public interface IOpenIdApplicationStore : ICryptoKeyStore, INonceStore
    {
    }
    

    We used dumb mode as a quick fix to get up an running, but in the end you'll probably want something like this.

提交回复
热议问题