OAuth 2.0

Number of APIs: 3

Follow along in this blog post:

[roles for OAuth](https://i.imgur.com/u59bK3B.png)

OAuth 2.0 in Qodex

This collection will walk through a few OAuth 2.0 authorization flows with the Spotify API and the PagerDuty API. - the Client Credentials flow - the Authorization Code flow - the Implicit Grant flow - the Authentication (with token in header) flow - the Authorization Code (with PKCE) flow

  1. Spotify - Implicit flow (via helper) GET https://api.spotify.com/v1/search?q=classical&type=track&market=US

  2. PagerDuty - PKCE flow (via helper) GET https://api.pagerduty.com/incidents

  3. Spotify - Client Credentials flow (via manual header) POST https://accounts.spotify.com/api/token