def __init__(self, secret, key_provider, server_name, token_lifetime=60,
                 now_func=time.time, lowest_supported_version=0):

        self.token_lifetime = token_lifetime
        self.secret = secret
        self.key_provider = key_provider
        self.urandom = open("/dev/urandom", "r")
        if not re.match("^[a-zA-Z0-9.-]+$", server_name):
            raise ValueError(
                "Invalid server name, can only contain letters, numbers, "
                "dot (.) and hyphen (-): " + server_name)
        if len(server_name) > 255:
            raise ValueError("Too long length of server_name: " +
                             len(server_name))
        self.server_name = server_name
        self.now_func = now_func
        self.lowest_supported_version = lowest_supported_version
Constructs a new AuthServer object, with the given parameters.
dataset/ETHPy150Open spotify/crtauth/crtauth/server.py/AuthServer.__init__