Generate a random number to be used as a web action's require-whisk-auth secret
()
| 1250 | |
| 1251 | // Generate a random number to be used as a web action's require-whisk-auth secret |
| 1252 | func genWebActionSecureKey() int64 { |
| 1253 | r := rand.New(rand.NewSource(time.Now().Unix())) |
| 1254 | |
| 1255 | // Truncate integer for API GW interoperability |
| 1256 | return r.Int63() & MAX_JS_INT |
| 1257 | } |
| 1258 | |
| 1259 | // Check if the specified action is a web-action |
| 1260 | func isWebAction(client *whisk.Client, qname QualifiedName) (*whisk.Action, error) { |