question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

minio-js doesn't support session token based presigned URL

See original GitHub issue

Hello,

Minio JS does not support session token presigned url This code does not work… the url generated don’t have a token.

var s3Client = new Minio.Client({ endPoint: 'myminio.domain', accessKey: 'X', secretKey: 'Y', sessionToken: 'Z', useSSL: false // Default is true. }) // Presigned get object URL for my-objectname at my-bucketname, it expires in 7 days by default. var presignedUrl = s3Client.presignedGetObject('tm8enk', 'file', 1000, function(e, presignedUrl) { if (e) return console.log(e) console.log(presignedUrl) })

http://myminio.domain/tm8enk/file?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=PB7Q16DM932BW65NRYJC%2F20200214%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200214T102516Z&X-Amz-Expires=1000&X-Amz-SignedHeaders=host&X-Amz-Signature=bdf009f6c6b3a85f39e2d7253a62d60dbf30ee86fd23cc5c68028d96eb846e68

This would be helpful to me if it could work …

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
olevittcommented, Feb 24, 2020

I just tested the new PR and #832 fixes it for us.
Thanks a lot !

0reactions
harshavardhanacommented, Feb 21, 2020

Reopening to investigate

Read more comments on GitHub >

github_iconTop Results From Across the Web

[fixed] Using the AWSS3 to get a PreSignedURL, returns a url ...
When I use the API to request a pre-signed URL request (AWSS3GetPreSignedURLRequest) an error is returned from the link returned when used ...
Read more >
Using presigned URLs - Amazon Simple Storage Service
In essence, presigned URLs are a bearer token that grants access to those who possess them. As such, we recommend that you protect...
Read more >
Securing your Amazon AWS S3 presigned URLs, tips and tricks
This blog post will briefly explain what a presigned URL is and will summarize ... By default, Amazon S3 doesn't collect server access...
Read more >
Pre-signed MultiPart Uploads with Minio | VanessaSaurus
In our case, the legacy endpoint now provides a presigned URL to PUT an image file; The PUT request is done with Minio...
Read more >
AWS S3 signed url keep throwing token expiration while trying ...
If a presigned URL is created using a temporary token, then the URL expires when the token expires, even if the URL was...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found