def get_oauthlib_core():
 validator = oauth2_settings.OAUTH2_VALIDATOR_CLASS()
 server = oauth2_settings.OAUTH2_SERVER_CLASS(validator)
 return oauth2_settings.OAUTH2_BACKEND_CLASS(server)

def get_oauthlib_core ( ) : validator = oauth2_settings . OAUTH2_VALIDATOR_CLASS ( ) server = oauth2_settings . OAUTH2_SERVER_CLASS ( validator ) return oauth2_settings . OAUTH2_BACKEND_CLASS ( server )
utility function that take a request and returns an instance of oauth2_provider .