yogsototh / oauth2-client-demo

A brutalist OAuth2 client demo.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test OAuth2 Authorization Code Grant process

Code is quite minimal done in js with no lib.

Running the Demo

If you don't want to use sws, you can use python 3.

python server.py

Utility scripts

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

About

A brutalist OAuth2 client demo.


Languages

Language:HTML 58.1%Language:Shell 17.3%Language:JavaScript 16.4%Language:CSS 5.4%Language:Nix 1.4%Language:Python 1.3%