Skip to content

Instantly share code, notes, and snippets.

@imranismail
Last active October 3, 2019 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imranismail/7866a846301ebe108f93f5d061a6356d to your computer and use it in GitHub Desktop.
Save imranismail/7866a846301ebe108f93f5d061a6356d to your computer and use it in GitHub Desktop.
Client Credentials Grant

token_endpoint_auth_method == client_secret_post

method: POST
path: /oauth2/token
accept: application/json
content-type: application/x-www-form-urlencoded
---
grant_type: string
code: string
redirect_uri: string
client_id: string
client_secret: string

token_endpoint_auth_method == client_secret_basic

method: POST
path: /oauth2/token
accept: application/json
content-type: application/x-www-form-urlencoded
authorization: basic base64(`${client_id}:${client_secret}`)
---
grant_type: string
code: string
redirect_uri: string
client_id: string

token_endpoint_auth_method == none (PKCE)

method: POST
path: /oauth2/token
accept: application/json
content-type: application/x-www-form-urlencoded
---
grant_type: string
code: string
code_verifier: string
redirect_uri: string
client_id: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment