Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a mechanism to provide the QISKit API token at runtime #471

Closed
tellison opened this issue May 15, 2018 · 2 comments
Closed

Provide a mechanism to provide the QISKit API token at runtime #471

tellison opened this issue May 15, 2018 · 2 comments
Labels
type: enhancement It's working, but needs polishing

Comments

@tellison
Copy link

At present it is necessary to modify the QConfig.py file to hard code the APItoken variable definition.

In environments where it is not easy/possible to modify files in the QISKit installation location, and

  1. it is not desirable to store a particular API token in plain sight, and
  2. it is desirable to support multiple API users,

there should be a way to pass in the APItoken value at runtime.

A suggested way to do this is through an environment variable.

@diego-plan9
Copy link
Member

Thanks @tellison - we have a revamp of the Qconfig system planned, as a more flexible system is a rather demanded feature (there is a discussion at #385 and previously #226). Unfortunately it was not ready by the time of the latest 0.5 release, but hopefully we will retake the work on that feature shortly and it will include more streamlined support for environment variables and flexibility: in the meantime, as you suggested, a workaround is using custom code in Qconfig.py for tailoring it to your needs.

@diego-plan9 diego-plan9 added the type: enhancement It's working, but needs polishing label May 21, 2018
@diego-plan9
Copy link
Member

Closing this issue in the hopes of continuing the discussion at #540 and finally get the feature in place 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement It's working, but needs polishing
Projects
None yet
Development

No branches or pull requests

2 participants