Integrating Web Services with OAuth and PHP

Modern web applications are no longer standalone, monolithic codebases. Instead, they are expected to integrate with external, 3rd party applications to allow users to tap into new features, integrate with their social networks, and to easily migrate their data between systems. Many services afford these integrations by building web services that use the OAuth standard to authenticate users and allow “secure delegated access” on their behalf.

There are two versions of OAuth. Version 1.0 as introduced introduced in 2007, and version 2.0 was released in 2012. Integrating Web Services with OAuth and PHP describes the differences between the two versions, explains the jargon associated with each, and—most importantly—provides working PHP examples for integrating with popular web services such as Twitter, Tumblr, Instagram, and others. This book also includes a primer on the HTTP protocol, highlights open-source resources for clients and servers, and discusses issues with OAuth and application security.

Written by PHP professional Matt Frost, this book is a useful resource for any developer that builds or integrates with online applications.

Read a sample excerpt from the book

Integrating Web Services with OAuth and PHP Contents

This book covers the following topics:

  • HTTP Requests & Responses: understand the basics of how they work.
  • OAuth Background and Challenges: see the problems which we will try to address.
  • OAuth 1 Request Flow, Clients, and Servers: look into how the authorization flow works in version 1.0.
  • Integrating with Services using OAuth 1: builds practical examples for integration.
  • OAuth 2 Request Flow, Clients, and Servers: look into how the authorization flow works in version 2.0.
  • Integrating with OAuth 2 Providers: example code showing how to register and use an external provider.
  • Security: highlights security issues specific to OAuth implmentations.

About the Author

Matthew Frost

Matt has been writing software for fun and profit for the last 15 years and is an active member of the PHP Community. He participates in the PHP Mentoring initiative as a mentor and apprentice. When he’s not thinking about, writing about, or writing code Matt enjoys baseball (specifically the Chicago Cubs), playing drums and guitar, running and goofing around with his kids.

Book Details

Title
Integrating Web Services with OAuth and PHP
ISBN
978-1940111261
Pages
116
Digital Formats
PDF, ePub, Mobi
Author
Matthew Frost
Date Published
2016-02-15
Dimensions
7.5" x 9.2"
Language
English