Skip to content

Instantly share code, notes, and snippets.

@andreybleme
Created May 27, 2017 21:20
Show Gist options
  • Save andreybleme/70d3d55584ea36a2e6b3ff5524c8f934 to your computer and use it in GitHub Desktop.
Save andreybleme/70d3d55584ea36a2e6b3ff5524c8f934 to your computer and use it in GitHub Desktop.
andreybleme.com | Dissacando: O Protocolo OAuth 2.0
curl --request POST \
--url 'https://AUTH_DOMAIN/oauth/token' \
--header 'content-type: application/json' \
--data '{"grant_type":"refresh_token",
"client_id": "SEU_CLIENT_ID",
"client_secret": "SEU_CLIENT_SECRET",
"code": "SEU_AUTHORIZATION_CODE",
"redirect_uri": "https://SEU_APP/callback"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment