6

I am trying to use OAuth 2.0 with my Asp.net Mvc 5 application with salesforce.

How can I get access token in controller action on authorization like -

[Authorize]
public ActionResult getToken()
{
  // I want to get my access token here using  some thing like this .
   String token = GetOwinContext().GetToken();
}
2

1 Answer 1

-2

I did it with normal flow of oauth security.(Without using owin security).

just hit your oauth login url to return a code and using that code create a oauth Token.

Sign up to request clarification or add additional context in comments.

1 Comment

Would you care to add more details?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.