Test OAuth2 Authorization Code Grant process
Code is quite minimal done in js with no lib.
If you don't want to use sws, you can use python 3.
python server.py
Modify scripts/get_refresh_token
to retrieve a refresh/access token from the CTR API.
./scripts/get_refresh_token.sh CLIENT_ID CLIENT_SECRET
Modify scripts/test_access_token
to use your access token to query the CTR API.
./scripts/test_access_token.sh ACCESS_TOKEN