ClientSecretCredentialsFromFile.

client_secret_from_file

client_secret_from_file( file_path: Union[str, Path], base64_encode: bool ) -> str

Reads the client secret from a file.

Parameters

nametypedescription
file_pathUnion[str, Path]The path to the file containing the client secret.
base64_encodeboolWhether to base64 encode the client secret or not. Defaults to False.

Returns

typedescription
strThe client secret, optionally base64 encoded.