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 OAuth 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 OAuth 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

Book Contents

This book covers the following topics:

  • HTTP Requests & Responses
  • OAuth Background and Challenges
  • OAuth 1 Request Flow, Clients, and Servers
  • Integrating with Services using OAuth 1
  • OAuth 2 Request Flow, Clients, and Servers
  • Integrating with OAuth 2 Providers
  • Security

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