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

Call Runtime API using Access Token #2070

Open
2 tasks
rachaelhouse opened this issue Dec 3, 2024 · 0 comments
Open
2 tasks

Call Runtime API using Access Token #2070

rachaelhouse opened this issue Dec 3, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rachaelhouse
Copy link

What is the expected feature or enhancement?

The runtime API currently accepts either an apiKey or bearer access token for authorization.
In the future the API would like to only accept access tokens for authorization.

To make this transition we should update the client so that we call the IBM cloud API to exchange the provided API key for an access token. This access token can then be passed to the runtime API.
The access token would be passed in the Authorization header with the bearer key word. For example
Authorization: bearer MY_ACCESS_TOKEN

The following API from IBM cloud should be used to generate the access token from the API key https://test.cloud.ibm.com/apidocs/iam-identity-token-api#gettoken-apikey

This change would be for the cloud channel.

Acceptance criteria

  • User can continue to pass the QiskitRuntimeService an API key for the cloud channel
  • The requests made to the runtime API use an access token for authorization not apiKey
@rachaelhouse rachaelhouse added the enhancement New feature or request label Dec 3, 2024
@kt474 kt474 self-assigned this Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants