create_token: Create new access token

View source: R/create_token.R

create_tokenR Documentation

Create new access token

Description

Get a token from the endpoint "access/api/v1/tokens" per JFrog's documentation. Note that the documentation for "expiry" parameter is wrong at the time of writing.

Usage

create_token(
  jfrog_url,
  expires_in = 2 * 60,
  access_token = jfrog_access_token()
)

Arguments

jfrog_url

Base URL of the JFrog domain.

expires_in

The life span of the token in seconds. Defaults to 2 minutes.

access_token

A valid token.

Details

A token can only be created using already existing tokens. A usecase is to have a long-lived token to generate more transient token used for authentication as part of e.g. test pipelines.

Value

A parsed response from the token endpoint, which is a list with entries "token_id", "access_token", "expires_in", "scope", "token_type".


robertdj/jfrog documentation built on Sept. 24, 2022, 6:16 p.m.