-
Notifications
You must be signed in to change notification settings - Fork 185
Use IBM Cloud access token to call runtime API #2102
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went through the PR but I think I'm missing the necessary context to give a proper review. Do you have an idea of who we should ping to review? I see there's an assigned reviewer but there hasn't been any action in a few months, things might have changed since then.
@cpkurotori do you mind taking a look when you get a chance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall looks good. Left a suggestion on not passing URL. Also you might want to consider using the IBM core sdk though for this. Could consider using either token manager for minimal changes to this file. Otherwise could use the iam authenticator but would likely require a little refactor.
Thanks @cpkurotori! Addressed your comments - using |
Co-authored-by: Cameron Kurotori <cpkurotori@gmail.com>
…m-runtime into api-access-token
Summary
Bearer tokens have a
expires_in
value returned from IAM that we need to use to check when/if the token expiresDetails and comments
Fixes #2070
Fixes #1874