Uh oh!
There was an error while loading. Please reload this page.
storage: add getSignedPolicy function to generate a signed policy - #502
storage: add getSignedPolicy function to generate a signed policy#502mziccard wants to merge 10 commits into
Conversation
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
stephenplusplus
commented
Apr 20, 2015
mziccard
commented
Apr 20, 2015
@stephenplusplus Feel free to bug me:) BTW, I think it is still open for discussion whether to move this method to Bucket (allowing signed policies not associated to a specific filename) or not. Adding a regression test might be useful as well. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
… equality and prefix conditions as 1D array. Docs updated accordingly. Added tests.
mziccard
commented
Apr 20, 2015
Should be ok now, even the boring stuff :) file.getSignedPolicy({equals: ['$Content-Type','image/jpeg']// ...and file.getSignedPolicy({equals: [['$Content-Type','image/jpeg']]// ...are now supported if only one condition is specified. (also for |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
stephenplusplus
commented
Apr 20, 2015
Thank you very much! |
mziccard
commented
Apr 23, 2015
Everything ok on my side, are there any more thoughts? |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ryanseys
commented
Apr 27, 2015
Just a couple |
* updated CHANGELOG.md [ci skip] * updated package.json [ci skip] * updated samples/package.json [ci skip]
* fix(docs): reference docs should link to section of googleapis.dev with API reference * fix(docs): make anchors work in jsdoc
* fix(docs): reference docs should link to section of googleapis.dev with API reference * fix(docs): make anchors work in jsdoc
* fix(docs): reference docs should link to section of googleapis.dev with API reference * fix(docs): make anchors work in jsdoc
…is#502) * fix(docs): reference docs should link to section of googleapis.dev with API reference * fix(docs): make anchors work in jsdoc
Added a function to generate a signed policy for POST requests.
So far it supports several conditions (according to the docs):
["eq", "$<field>", "<value>"]["starts-with", "$<field>", "<value>"]["content-length-range", <min_range>, <max_range>]{"bucket": "<bucket_name>"}{"acl": "<acl_name>"}{"success_action_redirect": "<url>"}{"success_action_status": "<status>"}Documentation is provided describing function arguments.
Unit tests are added.