OpenIdProvider.GetRequest() returns null

前端 未结 2 551
悲&欢浪女
悲&欢浪女 2021-01-21 11:11

As somewhat of a continuation of this question, I\'m having problems with dotnetopenauth.

I navigate to my relying party code and create the request, however when my pro

2条回答
  •  梦谈多话
    2021-01-21 11:53

    As you can see from the relying party log:

    ERROR DotNetOpenAuth.Messaging - Protocol error: The URL 'http://localhost:3314/OpenId/' is rated unsafe and cannot be requested this way.
    

    Your Provider is hosted on localhost, which on a production server is not a safe OpenID. So by default localhost is disabled. You can allow it for local testing by adding localhost to your whitelist by adding this to your web.config file (with the appropriate configSections at the top):

    
        
            
                
                    
                
            
        
    
    

提交回复
热议问题