create_token | R Documentation |
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.
create_token( jfrog_url, expires_in = 2 * 60, access_token = jfrog_access_token() )
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. |
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.
A parsed response from the token endpoint, which is a list with entries "token_id", "access_token", "expires_in", "scope", "token_type".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.