def lazy_load_oauth2_server(): try: return class_from_path(OAUTH2_SETTINGS.SERVER)() except KeyError: return OAuth2Server()
def oauth2_request_class(): try: return class_from_path(OAUTH2_SETTINGS.REQUEST) except KeyError: return OAuth2Request
def lazy_load_mongo_serializer(): try: return class_from_path(REST_SETTINGS.SERIALIZER)() except KeyError: return MongoSerializer()
def oauth2_client_class(): try: return class_from_path(OAUTH2_SETTINGS.CLIENT) except KeyError: return OAuth2Client