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
name | type | description |
---|---|---|
file_path | Union[str, Path] | The path to the file containing the client secret. |
base64_encode | bool | Whether to base64 encode the client secret or not. Defaults to False. |
Returns
type | description |
---|---|
str | The client secret, optionally base64 encoded. |