C# Class Senparc.Weixin.MP.Sample.Controllers.OAuth2Controller

Inheritance: Controller
显示文件 Open project: JeffreySu/WeiXinMPSDK

Public Methods

Method Description
BaseCallback ( string code, string state, string returnUrl ) : System.Web.Mvc.ActionResult

OAuthScope.snsapi_base方式回调

Index ( string returnUrl ) : System.Web.Mvc.ActionResult

TestReturnUrl ( ) : System.Web.Mvc.ActionResult

测试ReturnUrl

UserInfoCallback ( string code, string state, string returnUrl ) : System.Web.Mvc.ActionResult

OAuthScope.snsapi_userinfo方式回调

Method Details

BaseCallback() public method

OAuthScope.snsapi_base方式回调
public BaseCallback ( string code, string state, string returnUrl ) : System.Web.Mvc.ActionResult
code string
state string
returnUrl string 用户最初尝试进入的页面
return System.Web.Mvc.ActionResult

Index() public method

public Index ( string returnUrl ) : System.Web.Mvc.ActionResult
returnUrl string 用户尝试进入的需要登录的页面
return System.Web.Mvc.ActionResult

TestReturnUrl() public method

测试ReturnUrl
public TestReturnUrl ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

UserInfoCallback() public method

OAuthScope.snsapi_userinfo方式回调
public UserInfoCallback ( string code, string state, string returnUrl ) : System.Web.Mvc.ActionResult
code string
state string
returnUrl string 用户最初尝试进入的页面
return System.Web.Mvc.ActionResult