OAuth2 Provider library ported from scala-oauth2-provider and oauthlib