Secret

class Secret

An interface for working with secrets on Redivis, which can either be stored under an organization or user. In order to access organization secrets, you must be an administrator of that organization.

Constructors

Create a reference to a secret owned by an organization.

Create a reference to a secret owned by a user.

Examples

# secrets are case-sensitive
secret <- redivis$user("my_username")$secret("EXTERNAL_API_TOKEN")

# Avoid printing secrets, but rather pass them to other methods as needed
make_http_request("https://example.com/api", auth_token=secret$get_value())

Methods

Get the value of a secret, as a string

Last updated

Was this helpful?