motusLoadSecrets: load secrets for motus web API

Description Usage Arguments Value Note Author(s)

View source: R/motusLoadSecrets.R

Description

load secrets for motus web API

Usage

1
2
motusLoadSecrets(f = system.file("motusSecrets.json", package =
  "motusServer"), quiet = FALSE)

Arguments

f

filename: path to json-formatted file of secrets, with these items:

  1. key: API key; a secret

  2. user: username at motus-wts.org

  3. passwd: password at motus-wts.org

  4. serno: serial number of a sensorgnome

This defaults to the file motusSecrets.json installed with this package.

quiet

if TRUE, return silently on failure; otherwise, report errors.

Value

TRUE if secrets were successfully loaded.

Note

This function also loads a shared secret for apache's mod-auth-tkt ticket authentication module. This is parsed from the file whose path is MOTUS_MODAUTHTKT_SECRET_KEYFILE, defined in motusConstants.R

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm


jbrzusto/motusServer documentation built on May 19, 2019, 8:19 a.m.