login_oauth2 | R Documentation |
If the request for an access token is valid, the authorization server needs to generate an access token and return these to the client, typically along with some additional properties about the authorization.
login_oauth2(
authorize_url,
access_url,
client_id,
client_secret = NULL,
redirect_uri = "http://localhost:1410",
oauth2_cache = FALSE
)
authorize_url |
URL to send client to for authorization. |
access_url |
URL used to exchange unauthenticated for authenticated token. |
client_id |
Consumer key, also sometimes called the client ID. |
client_secret |
Consumer secret, also sometimes called the client secret. |
redirect_uri |
The URL that user will be redirected to after authorization is complete (default is http://localhost:1410). |
oauth2_cache |
A logical value or a string. TRUE means to cache using the default cache file .httr-oauth, FALSE means don't cache, and NA means to guess using some sensible heuristics. A string means use the specified path as the cache file. Default is FALSE (i.e., don't cache). |
no return value
Khaled Al-Shamaa, k.el-shamaa@cgiar.org
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.