示例#1
0
def lazy_load_oauth2_server():

    try:
        return class_from_path(OAUTH2_SETTINGS.SERVER)()
    except KeyError:
        return OAuth2Server()
示例#2
0
def oauth2_request_class():
    try:
        return class_from_path(OAUTH2_SETTINGS.REQUEST)
    except KeyError:
        return OAuth2Request
示例#3
0
def lazy_load_mongo_serializer():
    try:
        return class_from_path(REST_SETTINGS.SERIALIZER)()
    except KeyError:
        return MongoSerializer()
示例#4
0
def oauth2_client_class():
    try:
        return class_from_path(OAUTH2_SETTINGS.CLIENT)
    except KeyError:
        return OAuth2Client