motusLoadSecrets: load secrets for motus web API

View source: R/motusLoadSecrets.R

motusLoadSecretsR Documentation

load secrets for motus web API

Description

load secrets for motus web API

Usage

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


MotusWTS/motusServer documentation built on Aug. 8, 2024, 10:23 p.m.