Implementing OAuth for WebForms Applications

Feb 9, 2012 at 5:12 AM

Hi Joe Mayo,

          I have implemented the following code 
auth = new WebAuthorizer
{
Credentials = credentials,
PerformRedirect = authUrl => Response.Redirect(authUrl)
};
It does not redirect to my page to twitter authorize page.I also used the following code but in vain.
auth = new WebAuthorizer
{
Credentials = credentials,
PerformRedirect = authUrl => Response.Redirect("https://api.twitter.com/oauth/authorize")

};
it does not redirect to authorization page of twitter.

Please tell me  where i am going in wrong direction.

Coordinator
Feb 10, 2012 at 9:35 PM

Hi,

Your first example appears to be correct.  Are you explicitly setting URLs anywhere else?

Does the sample in the downloadable source code work for you?

Joe