-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
InvalidTokenId error when using Accesskey and SecretAccessKey returned from the response of AssumeRoleWithCertificate. #19928
Comments
You have to pass sessionToken as well |
Also, please either open a discussion or a GitHub issue—don't do both. Please do not spam everywhere. |
How do I pass a sessionToken to it using minio java? The .credentials in MinioClient.builder() only accepts accessKeyId and secretAccessKey. Do you have an sample code on it for the connection? |
Thanks for your help. I got it working but I wonder if it is the correct or proper way to connect?
|
|
Discussed in #19927
Originally posted by haylch June 13, 2024
Hi, anyone can help?
Using the Accesskey and SecretAccessKey returned from the response of AssumeRoleWithCertificate and apply with the following code:
I got the following exception:
Error occurred: error occurred
ErrorResponse(code = InvalidTokenId, message = The security token included in the request is invalid ...
How do I connect to MinIO using the response from AssumeRoleWithCertificate? Do I have to use the SessionToken? How do I use it in java?
The text was updated successfully, but these errors were encountered: