Remove the =None s in the constructor.
Instead take a keyword method=get_auth_file argument which is the function that will provide the credentials. RI is that client_id, client_secret, cert_crt_path, cert_key_path are not None so constructor will fail of the the supplied function does not fill these class attributes. Validation can wait for later if at all.
Remove the =None s in the constructor. Instead take a keyword
method=get_auth_file
argument which is the function that will provide the credentials. RI is thatclient_id, client_secret, cert_crt_path, cert_key_path
are not None so constructor will fail of the the supplied function does not fill these class attributes. Validation can wait for later if at all.