This project has moved and is read-only. For the latest updates, please go here.

getting past authentication

Topics: Developer Forum
Jan 10, 2013 at 9:54 PM

I can't seem to get past authentication and I am not sure why.  Here is what I have so far:

ConsumerKey and Secret defined and assigned previously.

              FlickrNet.Flickr f = new FlickrNet.Flickr(ConsumerKey, Secret);
              FlickrNet.OAuthRequestToken Rtoken = f.OAuthGetRequestToken("oob");
              string authURL = @"" + Rtoken.Token;

              string result = web.DownloadString(authURL);

// I now have the html from yahoo which displays properly in my web browser control which is part of Form2

              Form2 f2 = new Form2(result);


If I enter my username and password for yahoo, click submit, nothing happens.  If I clear out my username and password, click submit, I get a warning that my creds are incorrect.  Also, all other links work on the page. 

What am I missing?

Jan 11, 2013 at 2:47 PM

You shouldn't be downloading the html into a string, you should be using the WebBrowser control to go to the authURL itself (using the Navigate() method I think).


Jan 11, 2013 at 5:10 PM

I changed the code to navigate instead of setting the html to the return from DownloadString and I am now able to access my data.  Thanks for the help Sam.