oauth_flow_device {httr2} | R Documentation |
These functions implement the OAuth device flow, as defined by rfc8628. It's designed for devices that don't have access to a web browser (if you've ever authenticated an app on your TV, this is probably the flow you've used), but it also works well from within R.
This specification allows also some subspecifications:
oauth_flow_auth_code_pkce()
is also reused here to generate code
verifier, method, and challenge components as needed for PKCE, as
defined in rfc7636.
oauth_flow_device(
client,
auth_url,
pkce = FALSE,
scope = NULL,
auth_params = list(),
token_params = list()
)
client |
An |
auth_url |
Authorization url; you'll need to discover this by reading the documentation. |
pkce |
Use "Proof Key for Code Exchange"? This adds an extra layer of security and should always be used if supported by the server. |
scope |
Scopes to be requested from the resource owner. |
auth_params |
List containing additional parameters passed to |
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_password()
,
oauth_flow_refresh()