/MicroservicesPractice

Learning to build microservice components like and establish communication between them.

Primary LanguagePython

Authorization code flow:

curl -X POST \
    -H "Cache-Control: no-cache" \
    -H "Content-Type: application/x-www-form-urlencoded" \
    "http://127.0.0.1:8000/o/token/" \
    -d "client_id=${ID}" \
    -d "client_secret=${SECRET}" \
    -d "code=${CODE}" \
    -d "code_verifier=${CODE_VERIFIER}" \
    -d "redirect_uri=http://127.0.0.1:8000/noexist/callback" \
    -d "grant_type=authorization_code"
  • => Recieved response should look like: \
    {
       "access_token": "<some_token>",
       "expires_in": 36000,
       "token_type": "Bearer",
       "scope": "read write",
       "refresh_token": "<some_refresh_token>"
     }