Chapter 11

Authenticating Web Services

There are many web services on the internet which allow client applications to query and store all kinds of structured information. Some web services require the user to authenticate in order to use protected resources.

11.1    Registering your app

A common source of web service calls is to Facebook’s Graph API1. With this API, you can query and submit pictures, status updates, comments, and more. All interactions are done on behalf of a particular Facebook user. The user has to give permission to the application to access any part of the user’s information.

OAuth v2.0 is a common authentication mechanism for web ...

Get TouchDevelop: Programming on the Go, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.