iqm.iqm_client.cli.token_manager

iqm.iqm_client.cli.token_manager#

Token manager for authentication and authorization to IQM’s quantum computers. Part of IQM Client CLI.

Functions

check_token_manager(tokens_file)

Check whether a token manager related to the given tokens_file is running.

daemonize_token_manager(cycle, config[, logfile])

Start a daemon process.

read_tokens(path_to_tokens_file)

Read current tokens from the tokens file.

refresh_tokens(config, current_tokens, cycle)

Request new tokens from auth server.

start_token_manager(cycle, config[, single_run])

Refresh tokens periodically.

write_tokens(path_to_tokens_file, ...[, ...])

Write new tokens into the tokens file.