×
Namespaces

Variants
Actions

Talk:OAuth on Windows Phone

From Nokia Developer Wiki
Jump to: navigation, search

Contents

Hamishwillee - Sounds like a good topic to cover

Hi Vishal

One thing you might want to cover is if there are any existing helper libraries for this. In addition, there are examples around showing specific Oauth cases (like Facebook), might be worth cross linking to those too.

When do you hope to look at this?

On a related note, you wrote a bunch of articles for WP7. Could you review them for WP8, and if they are still accurate add both version categories? e.g.

  • How to Create and Run a basic Windows Phone application . . vdharankar
  • Creating your first Windows Phone app . . vdharankar
  • Windows Phone tutorial for Beginners.. . . vdharankar
  • How to create WP app using Visual Studio . . vdharankar


Regards

Hamish

hamishwillee 08:58, 23 January 2013 (EET)

Vdharankar - Working on it already

I am working on this article, example is already working.

About the other articles they work straight on WP8 so no need to review them , most UI part of VS is also same , I have checked it already.

Thanks

Vishal

Vishal Dharankar 20:00, 23 January 2013 (EET)

Hamishwillee - Thanks!

Thanks very much. Sorry, about the questions on those articles - saw this before I saw them.

I do still think linking to libraries (if they exist) that also do this would be a good idea. No point reinventing the wheel. That said, articles on first principles also very useful!

hamishwillee 07:16, 24 January 2013 (EET)

Vdharankar - No library unfortunately

I have searched enough and for oAuth 2.0 atleast there is no ready made library for WP8 , this is a portion of my professional work I would have been happier if I would have come across any such method for WEB based oAuth authentication. Libraries exists for handling / calling RESTful services no doubt but no library handles oAuth dirty work for application. I felt the need of such document on WIKI no doc exists as a full example , I came across Hammock example but thats for PIN based oAuth that too 1.0 I doubt mostly twitter uses PIN based oAuth.

The code isnt that big , so you will be surprised , let me finish the article.

Thanks

Vishal

Vishal Dharankar 11:13, 24 January 2013 (EET)

Neekolaus -

Hi, I'm a very new developer - noticed that there was no event handler for "web1_navigating"? So removed it.

Also, the app stops at "HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(callbackResult);" with this error: An exception of type 'System.Net.WebException' occurred in System.Windows.ni.dll but was not handled in user code.

Did I miss out something? Replaced "code" with the API key.

neekolaus 08:02, 23 May 2013 (EEST)

Hamishwillee - You might want to private message the author or ask on discussion boards

Hi Neekolaus

Thanks for the report - and your change makes sense to me. However you might want to private message the author vdharankar because it is possible he is not watching the article.

Regards

Hamish

hamishwillee 04:41, 24 May 2013 (EEST)

Sanky10987 -

Hi Neekolaus Did you get any solution for your problem? Even I am facing the same issue.

Thanks.

sanky10987 (talk) 01:25, 9 July 2013 (EEST)

Tuzik -

You need to replace consumerKey with one you registrated (pocket.com), otherwise this error would break it.

               Stream postStream = myRequest.EndGetRequestStream(callbackResult);
               // Create the post data
               string postData = "consumer_key= [YOU CONSUMER KEY GOES HERE ]&redirect_uri=http://www.google.com";
byte[] byteArray = Encoding.UTF8.GetBytes(postData);

Tuzik (talk) 09:33, 18 August 2013 (EEST)

 
×