You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/02/08 01:28:43 UTC
[GitHub] pritidesai commented on issue #712: Action: Web (action): Support the require-whisk-auth annotation
pritidesai commented on issue #712: Action: Web (action): Support the require-whisk-auth annotation
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/issues/712#issuecomment-363971919
This is already supported as `wskdeploy` supports annotations and can be defined as:
```
greeting-web-action-with-auth:
web-export: true
version: 1.0
function: src/greeting.js
runtime: nodejs:6
annotations:
require-whisk-auth: true
```
Verifying:
```
wsk action get IntegrationTestWebAction/greeting-web-action-with-auth
ok: got action IntegrationTestWebAction/greeting-web-action-with-auth
{
"namespace": "guest/IntegrationTestWebAction",
"name": "greeting-web-action-with-auth",
"version": "0.0.1",
"exec": {
"kind": "nodejs:6",
"code": "/**\n * Return a simple greeting message for someone.\n *\n * @param name A person's name.\n * @param place Where the person is from.\n */\nfunction main(params) {\n var name = params.name || params.payload || 'stranger';\n var place = params.place || 'somewhere';\n return {payload: 'Hello, ' + name + ' from ' + place + '!'};\n}\n",
"binary": false
},
"annotations": [
{
"key": "web-export",
"value": true
},
{
"key": "raw-http",
"value": false
},
{
"key": "final",
"value": true
},
{
"key": "require-whisk-auth",
"value": true
},
{
"key": "exec",
"value": "nodejs:6"
}
],
"limits": {
"timeout": 60000,
"memory": 256,
"logs": 10
},
"publish": false
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services