Ram*_*thi 6 asp.net-mvc oauth-2.0 asp.net-mvc-4 owin
我正在尝试将OAuth 2.0与我的Asp.net Mvc 5应用程序与salesforce一起使用.
如何在授权控制器操作中获取访问令牌,如 -
[Authorize]
public ActionResult getToken()
{
// I want to get my access token here using some thing like this .
String token = GetOwinContext().GetToken();
}
Run Code Online (Sandbox Code Playgroud)
Ram*_*thi -2
我使用 oauth 安全性的正常流程来完成此操作。(不使用 owin 安全性)。
只需点击您的 oauth 登录网址即可返回代码,并使用该代码创建 oauth 令牌。
| 归档时间: |
|
| 查看次数: |
1685 次 |
| 最近记录: |