oauth2_login: Helper function to log in to a third party OAuth2.0 app...

View source: R/oauth.R

oauth2_loginR Documentation

Helper function to log in to a third party OAuth2.0 app without a browser

Description

It works with oauth2_resource_app(), and any third party app, including the fake oauth2_third_party_app().

Usage

oauth2_login(login_url)

Arguments

login_url

The login URL of the third party app.

Details

See test-oauth.R in webfakes for an example.

Value

A named list with

  • login_response The curl HTTP response object for the login page.

  • token_response The curl HTTP response object for submitting the login page.

See Also

Other OAuth2.0 functions: oauth2_httr_login(), oauth2_resource_app(), oauth2_third_party_app()


webfakes documentation built on Oct. 1, 2023, 9:06 a.m.