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

AssumeRoleProvider #1278

Closed
xkkkA opened this issue Apr 12, 2024 · 3 comments
Closed

AssumeRoleProvider #1278

xkkkA opened this issue Apr 12, 2024 · 3 comments

Comments

@xkkkA
Copy link

xkkkA commented Apr 12, 2024

I am using nodejs to operate minio, and now I want to obtain STS temporary credentials to pass to the front-end. How should I obtain them? I see the AssumeRoleProvider function in the source code, but why is it not open for bitwise conversion? How to use it and how to use it

@prakashsvmx
Copy link
Member

Currently the typescript migration is in progress.
for older versions, please refer to examples in #960

@xkkkA
Copy link
Author

xkkkA commented Apr 12, 2024

Thank you for your reply. Currently, I am using JavaScript. After seeing your answer, I moved the dist folder in the source code to my project and introduced the AssumeRoleProvider, which can be used normally. Will this method continue to be used in the future? I am the latest version. Another small issue is that when I use the AssumeRoleProvider to obtain credentials, passing in the durationSeconds parameter seems to have no effect. The information it returns does not include the expiration time field
image

@prakashsvmx
Copy link
Member

minimum is 15 minutes as per s3 spec i guess.
you can check server traces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants