You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by cs...@apache.org on 2018/04/10 16:55:09 UTC

[incubator-openwhisk] branch master updated: --web-secure option doc update (#3535)

This is an automated email from the ASF dual-hosted git repository.

csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new c7271e2  --web-secure option doc update (#3535)
c7271e2 is described below

commit c7271e219bfcbf0aacf1e562fe99b792aa30da64
Author: Mark Deuser <md...@us.ibm.com>
AuthorDate: Tue Apr 10 12:55:02 2018 -0400

    --web-secure option doc update (#3535)
---
 docs/webactions.md | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/docs/webactions.md b/docs/webactions.md
index 6bd1f31..e08a9ea 100644
--- a/docs/webactions.md
+++ b/docs/webactions.md
@@ -284,6 +284,12 @@ The result of these changes is that the `name` is bound to `Jane` and may not be
 
 By default, a web action can be invoked by anyone having the web action's invocation URL. Use the `require-whisk-auth` [web action annotation](annotations.md#annotations-specific-to-web-actions) to secure the web action. When the `require-whisk-auth` annotation is set to `true`, the action will authenticate the invocation request's Basic Authorization credentials against the action owner's whisk auth key.  When set to a number or a case-sensitive string, the action's invocation request m [...]
 
+Alternatively, use the `--web-secure` flag to automatically set the `require-whisk-auth` annotation.  When set to `true` a random number is generated as the `require-whisk-auth` annotation value. When set to `false` the `require-whisk-auth` annotation is removed.  When set to any other value, that value is used as the `require-whisk-auth` annotation value.
+
+```bash
+$ wsk action update /guest/demo/hello hello.js --web true --web-secure my-secret
+```
+or
 ```bash
 $ wsk action update /guest/demo/hello hello.js --web true -a require-whisk-auth my-secret
 ```

-- 
To stop receiving notification emails like this one, please contact
csantanapr@apache.org.