APPENDIX A

image

OAuth

In this appendix, we’ll walk through the process of authenticating users within your web app using their existing social media accounts, thus eliminating the need for yet another username-password combo on yet another site.

To accomplish this, we’ll be using the OAuth protocol.

What Is OAuth?

According to the OAuth home page, OAuth is “an open protocol to allow secure API authorization in a simple and standard method from desktop and web applications.”1

What that means at a high level is that OAuth provides a way for your app to access a user’s other accounts, such as Facebook, without requiring the user’s Facebook password to ...

Get Realtime Web Apps: With HTML5 WebSocket, PHP, and jQuery 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.