oAuth/oAuth2 Authentification
-
Monday, January 14, 2013 1:31 PM
Hey,
is it possible to use Casablanca to access the Google Calendar API via oAuth2?
How can i use the oAuth2 authentification, i never get the access token back - so i cant access my calendar...
Is there any example how to use casablanca with oAuth/oAuth2 authentification?
Thanks in advance,
Ben
All Replies
-
Wednesday, January 23, 2013 11:00 AMOwner
Hi Ben,
Sorry for delayed response! Yes, it should be possible to consume OAuth 2.0 services such as Google APIs using Casablanca's http_client.
Obviously, this isn't going to be as convenient as using a higher-level library (such as DotNetOpenAuth for .NET), but it should be possible. We might consider adding a higher-level API in the future.
As to why you're not getting the access_token back -- I suspect your request might be malformed. To troubleshoot this, I would create a simple request using a browser or a web debugger such as Fiddler, and see if that works. Next, do the same using http_client and see if there is a difference.
Artur Laksberg Visual C++ Team Microsoft
- Proposed As Answer by Artur LaksbergOwner Thursday, February 28, 2013 4:48 AM

