Finished creating a working OAuth2 provider using Flask, Redis and pyoauth2-shift.
Used a package called birdy to confirm that my tokens, keys and secrets where all working correctly.