Troubleshooting

As we've discovered throughout the book, the OAuth 2.0 protocol is simply a series of structured HTTP requests and responses to facilitate the transfer of data. Because of the straightforward nature of the protocol, we are able to troubleshoot issues with basic tools. In fact, we can simulate the majority of our implemented OAuth 2.0 flows with these tools alone, separate from our application. Here is the approach we will take:

  • If it's a POST request, we can simulate it with a cURL command
  • If it's a GET request, we can simulate it directly within our browser, or with a cURL command

With this approach in mind, we can now look at the various flows that we've examined in the book, this time, simulating them with our tools instead of ...

Get Mastering OAuth 2.0 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.