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
Authentication with access token #85
Comments
That's a good question. It is possible with the Java SDK, which makes me think it should be possible. I'll take a look and provide an update. |
Yeah, looks like it's as easy as just providing a ibm-cos-sdk-js/lib/iam/token_manager.js Line 76 in 5d776bc
|
Thanks, I wasn't able to get new COS.S3({
endpoint: "https://s3.us.cloud-object-storage.appdomain.cloud",
serviceInstanceId: "...",
// @ts-ignore
tokenManager: {
getToken: () => ({
accessToken: token,
}),
},
}); Neither |
Has your issue been resolved? |
Not exactly, I was able to do a work around, but there doesn’t seem to be an official way to do this? |
@bourdakos1 Your resolution would be the "official" one I would suggest. There currently is no support for supplying a pre-fetched IAM token. For cases like this, we suggest extending the token manager with the behavior you are looking for. Also, re: typedefs, I've opened an internal ticket. If this cover everything, please close this as resolved. |
okay great, yea the typedef fix would cover everything thanks :) |
Is it possible to use this sdk with only a service instance ID and an access token? (no api key)
The text was updated successfully, but these errors were encountered: