setup_op: Attempt to signin to 1Password for the first time.

Description Usage Arguments Details Value

Description

This function is only required once, after which point a new folder will be created by op in the user's home directory, storing the session tokens. See Details.

Usage

1
setup_op(URL = "my.1password.com", email = NULL, secret_key = NULL)

Arguments

URL

domain used to signin to 1Password, e.g. my.1password.com

email

your login email

secret_key

your Secret Key

Details

Requests the 1Password Master Password. At no point is this saved to even a temporary variable. This is only required for signin, after which a session token will be used to communicate with 1Password. The session token is validated on the server and lasts 30 minutes, after which you will again need to sign in.

The session token is not the actual hash, but merely a reference to an encrypted token in the user's home directory (in e.g. ~/.op/config).

This sets an environment variable OP_SESSION_X (where X is the subdomain) and an option OP_SUBDOMAIN.

Value

if successful, the login token, invisibly.


jonocarroll/opr documentation built on May 29, 2019, 5:40 a.m.