Skip to content

Instantly share code, notes, and snippets.

@andreybleme
Last active May 27, 2017 19:27
Show Gist options
  • Save andreybleme/ba1200c2787a4bfb96266a9dc9706748 to your computer and use it in GitHub Desktop.
Save andreybleme/ba1200c2787a4bfb96266a9dc9706748 to your computer and use it in GitHub Desktop.
andreybleme.com | Dissecando: Protocolo OAuth 2.0
curl --request POST \
--url 'https://AUTH_DOMAIN/oauth/token' \
--header 'content-type: application/json' \
--data '{"grant_type":"authorization_code",
"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