oauth_flow_password {httr2} | R Documentation |
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.
oauth_flow_password(
client,
username,
password = NULL,
scope = NULL,
token_params = list()
)
client |
An |
username |
User name. |
password |
Password. You avoid entering the password directly when
calling this function as it will be captured by |
scope |
Scopes to be requested from the resource owner. |
token_params |
List containing additional parameters passed to the
|
An oauth_token.
Other OAuth flows:
oauth_flow_auth_code()
,
oauth_flow_bearer_jwt()
,
oauth_flow_client_credentials()
,
oauth_flow_device()
,
oauth_flow_refresh()