dwavesystems / dwave-cloud-client

A minimal implementation of the REST interface used to communicate with D-Wave Solver API (SAPI) servers.
https://docs.ocean.dwavesys.com/projects/cloud-client/en/stable/
Apache License 2.0
59 stars 40 forks source link

Make location of credentials file configurable #615

Open randomir opened 5 months ago

randomir commented 5 months ago

Currently, dwave.cloud.auth.flow.AuthFlow will use Credentials backed by a file (created) next to the most-specific dwave config file. Typically, config file will be in ~/.config/dwave/dwave.conf, and credentials will be stored right next to it in ~/.config/dwave/credentials.db.

If no config file is present on disk, credentials are stored in the default user config file location (see dwave.cloud.config.get_default_configfile_path).

We need to either generalize DWAVE_CONFIG_FILE semantics to include credentials, or introduce a new variable.