web oAuth authentication

Sep 30, 2013 at 10:57 PM

I have an url to receive user permission to an app over Skydrive and get the authorization code, and after that get the access_token.

I am over C++ native, how can I open a browser to show de permission dialog to the user such as WebAuthenticationBroker?

Sep 30, 2013 at 11:36 PM
Hi fbsamsung,

Have you had a chance to look at the WindowsLiveAuth sample? This sample uses HTTP Client and WebAuthenticationBroker to authenticate a user using their live credentials in order to upload and download files from SkyDrive.

Please let us know if you have any questions!

Oct 1, 2013 at 12:59 PM
Hi sanamithani,

I saw, but in my case I can't use Windows namespace, and WebAuthenticationBroker as well. My project is an Win32 console project. I've added Casablanca via nugget and I've made some http requests and its working fine. Now I need to make a http_client.request and open the returned response in a web browser.

Thanks for your answer sanamithani.
Oct 1, 2013 at 5:31 PM
Hi fbsamsung,

The Casablanca library doesn't currently support OAuth for native applications. If this is a blocking issue for you please vote for the feature here and leave a comment.

In the meanwhile you might find this blog post useful as a workaround: http://msdn.microsoft.com/en-us/magazine/dn342869.aspx. In the article the author uses the Casablanca HTTP Client and his own OAuth class to authenticate for DropBox.
Oct 24, 2013 at 12:25 PM
Thanks for you attention Sanamithani.