日期:2014-05-16  浏览次数:20444 次

万能的csdn,求OAuth2.0的问题?
用DotNetOpenAuth实现Client
AuthConfig.cs中使用OAuthWebSecurity.RegisterClient
然后实现 DotNetOpenAuth.AspNet.IAuthenticationClient
但是具体怎么实现,实在是无头绪,请求大神支持

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace test.Models
{
    public class myTools123 : DotNetOpenAuth.AspNet.IAuthenticationClient
    {
        public string ProviderName
        {
            get
            {
                return "test";
            }
        }

        public void RequestAuthentication(HttpContextBase context, Uri returnUrl)
        {
            throw new NotImplementedException();
        }

        public DotNetOpenAuth.AspNet.AuthenticationResult VerifyAuthentication(HttpContextBase context)
        {
            throw new NotImplementedException();
        }
    }
}

------解决方案--------------------
没弄过,帮顶下
------解决方案--------------------
做过,但是好像客户端不需要实现IAuthenticationClient啊
------解决方案--------------------
我也是这样的,我觉得是服务器端没有设置好吧。