Skip to content

This function implements the OAuth resource owner password flow, as defined by rfc6749, Section 4.3. It allows the user to supply their password once, exchanging it for an access token that can be cached locally.

Usage

oauth_flow_password(
  client,
  username,
  password = NULL,
  scope = NULL,
  token_params = list()
)

Arguments

client

An oauth_client().

username

User name.

password

Password. You avoid entering the password directly when calling this function as it will be captured by .Rhistory. Instead, leave it unset and the default behaviour will prompt you for it interactively.

scope

Scopes to be requested from the resource owner.

token_params

List containing additional parameters passed to the token_url.

Value

An oauth_token.