Skip to content

Presigned URL for MSK #2985

Discussion options

You must be logged in to vote

Turns out User-Agent is required parameter and has to come after Operation and Authentication parameters.

    url = signer.presign_url(
      http_method: 'GET',
      url: url,
      )

    uri =  URI.parse(url)
    new_query_ar = URI.decode_www_form(String(uri.query)) << ["User-Agent", "aws-msk-iam-sasl-signer-ruby"]
    uri.query = URI.encode_www_form(new_query_ar)
    url = uri.to_s

Replies: 7 comments 14 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by bruce-szalwinski-he
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@mullermp
Comment options

@mullermp
Comment options

@mullermp
Comment options

Comment options

You must be logged in to vote
7 replies
@bruce-szalwinski-he
Comment options

@mullermp
Comment options

@bruce-szalwinski-he
Comment options

@bruce-szalwinski-he
Comment options

@mullermp
Comment options

Comment options

You must be logged in to vote
2 replies
@mullermp
Comment options

@bruce-szalwinski-he
Comment options

Comment options

You must be logged in to vote
2 replies
@mullermp
Comment options

@mullermp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants