OAuth2 framework with Redis backend to implement authorization and resource servers