Learn R Programming

shiny.telemetry (version 0.3.1)

build_token: Builds hash for a call

Description

Function that takes creates a signature for the values using a secret.

Usage

build_token(values, secret = NULL)

Value

A string that contains an hash to uniquely identify the parameters.

Arguments

values

R object that is going to be signed

secret

string that contains the shared secret to sign the communication. It can be NULL on both telemetry and in plumber API to disable this communication feature

Details

This is used in shiny.telemetry, but also externally with the Plumber endpoint.

Examples

Run this code
build_token(values = list(list(1, 2, 3), 2, 2, 3, "bb"))
build_token(values = list(list(1, 2, 3), 1, 2, 3, "bb"))
build_token(values = list(list(1, 2, 3), 1, 2, 3, "bb"), secret = "abc")
build_token(values = list(list(1, 2, 3), 1, 2, 3, "bb"), secret = "abd")

Run the code above in your browser using DataLab