googleAuthR: Easy Authentication with Google OAuth2 API

Create R functions that interact with OAuth2 Google APIs easily, with auto-refresh and Shiny compatibility.

Install the latest version of this package by entering the following in R:
install.packages("googleAuthR")
AuthorMark Edmondson [aut, cre], Jennifer Bryan [ctb], Johann deBoer [ctb]
Date of publication2017-03-31 10:11:27 UTC
MaintainerMark Edmondson <m@sunholo.com>
LicenseMIT + file LICENSE
Version0.5.1
http://code.markedmondson.me/googleAuthR/

View on CRAN

Man pages

applyDataParseFunction: Apply parsing function if a good response

Authentication: R6 environment to store authentication credentials

authReturnCode: Returns the authentication parameter "code" in redirected...

check_cached_scopes: Check token scopes

checkGoogleAPIError: Get Google API errors

checkTokenAPI: Check API data token

check.Url: Checks Urls are in right format for API request

createCode: Creates a random character code

doBatchRequest: Batch Requests

doHttrRequest: Get URL content based on if its Shiny or local

error.message: Get the error message

gar_api_generator: googleAuthR data fetch function generator

gar_attach_auto_auth: Auto Authentication function for use within .onAttach

gar_auth: Authorize 'googleAuthR'

gar_auth_js: Shiny JavaScript Google Authorisation [Server Module]

gar_auth_jsUI: Shiny JavaScript Google Authorisation [UI Module]

gar_auth_service: JSON service account authentication

gar_auto_auth: Perform auto authentication

gar_batch: Turn a list of gar_fetch_functions into batch functions

gar_batch_walk: Walk data through batches

gar_create_api_objects: Create the API objects from the Discovery API

gar_create_api_skeleton: Create an API library skeleton

gar_create_package: Create a Google API package

gar_discovery_api: Get meta data details for specified Google API

gar_discovery_apis_list: Get a list of Google API libraries

gar_gadget: Gadget for easy authentication

gar_gce_auth: Authenticate on Google Compute Engine

gar_js_getToken: Create a httr token from a js token

gar_shiny_getAuthUrl: Returns the Google authentication URL

gar_shiny_getToken: Returns the authentication Token.

gar_shiny_getUrl: Get the Shiny Apps URL.

gar_token_info: Get current token summary

get_google_token: Retrieve Google token from environment and configs for httr

googleAuth: Server side google auth (Shiny Module)

googleAuthR: googleAuthR: Easy Authentication with Google OAuth2 APIs

googleAuthUI: A Login button (Shiny Module)

is.error: Is this a try error?

is_legit_token: Check that token appears to be legitimate

is.NullOb: A helper function that tests whether an object is either NULL...

is_shiny: Is this a valid shiny session object?

loginOutput: Login/logout Shiny output

makeBatchRequest: Make the batch request inner content

myMessage: Customer message log level

parseBatchResponse: Parse batch request

postwalk: Walk into a list

reactiveAccessToken: Create a reactive Google OAuth2 token

renderLogin: Render a Google API Authentication Login/logout button

replace.kv: Create a modified list

retryRequest: ReTry API requests for certain errors using exponential...

revokeEventObserver: Listens for a user revoking authentication

RFC_convert: Converts RFC3339 to as.Date

rmNullObs: Recursively step down into list, removing all such objects

split_vector: split a vector on an element

substitute.list: Substitute in a (nested) list

token_exists: Check if authorization currently in force

with_shiny: Turn a googleAuthR data fetch function into a Shiny...

Functions

applyDataParseFunction Man page
Authentication Man page
authReturnCode Man page
check_cached_scopes Man page
checkGoogleAPIError Man page
checkTokenAPI Man page
check.Url Man page
createCode Man page
doBatchRequest Man page
doHttrRequest Man page
error.message Man page
gar_api_generator Man page
gar_attach_auto_auth Man page
gar_auth Man page
gar_auth_js Man page
gar_auth_jsUI Man page
gar_auth_service Man page
gar_auto_auth Man page
gar_batch Man page
gar_batch_walk Man page
gar_create_api_objects Man page
gar_create_api_skeleton Man page
gar_create_package Man page
gar_discovery_api Man page
gar_discovery_apis_list Man page
gar_gadget Man page
gar_gce_auth Man page
gar_js_getToken Man page
gar_shiny_getAuthUrl Man page
gar_shiny_getToken Man page
gar_shiny_getUrl Man page
gar_token_info Man page
get_google_token Man page
googleAuth Man page
googleAuthR Man page
googleAuthR-package Man page
googleAuthUI Man page
is.error Man page
is_legit_token Man page
is.NullOb Man page
is_shiny Man page
loginOutput Man page
makeBatchRequest Man page
myMessage Man page
parseBatchResponse Man page
postwalk Man page
reactiveAccessToken Man page
renderLogin Man page
replace.kv Man page
retryRequest Man page
revokeEventObserver Man page
RFC_convert Man page
rmNullObs Man page
split_vector Man page
substitute.list Man page
token_exists Man page
with_shiny Man page

Files

inst
inst/flexdashbord
inst/flexdashbord/authDemo.Rmd
inst/flexdashbord/rsconnect
inst/flexdashbord/rsconnect/documents
inst/flexdashbord/rsconnect/documents/authDemo.Rmd
inst/flexdashbord/rsconnect/documents/authDemo.Rmd/shinyapps.io
inst/flexdashbord/rsconnect/documents/authDemo.Rmd/shinyapps.io/mark
inst/flexdashbord/rsconnect/documents/authDemo.Rmd/shinyapps.io/mark/authDemoFlex.dcf
inst/embed
inst/embed/ui.R inst/embed/server.R
inst/shiny
inst/shiny/ui.R inst/shiny/server.R
inst/shiny/readme.md
inst/shiny/DESCRIPTION
inst/shiny/rsconnect
inst/shiny/rsconnect/shinyapps.io
inst/shiny/rsconnect/shinyapps.io/mark
inst/shiny/rsconnect/shinyapps.io/mark/googleAuthRtestv4.dcf
inst/rstudio
inst/rstudio/addins.dcf
inst/doc
inst/doc/google-authentication-types.Rmd
inst/doc/building.Rmd
inst/doc/setup.Rmd
inst/doc/setup.html
inst/doc/google-authentication-types.html
inst/doc/building.html
tests
tests/testthat.R
tests/testthat
tests/testthat/httr-oauth.rds
tests/testthat/test-batch.R tests/testthat/test-gaAuthR.R
tests/testthat/auth.json
tests/testthat/test-discovery.R
NAMESPACE
NEWS.md
R
R/googleAuthR_discovery.R R/googleAuthR.R R/googleAuthR_auto_auth.R R/googleAuthR_discovery_utilities.R R/googleAuthR_gadget.R R/googleAuthR_shiny.R R/googleAuthR_options.R R/googleAuthR_batch.R R/googleAuthR_auth.R R/googleAuthR_discovery_build.R R/googleAuthR_generator.R R/googleAuthR_utility.R
vignettes
vignettes/google-authentication-types.Rmd
vignettes/building.Rmd
vignettes/setup.Rmd
vignettes/googleAuthR.html
README.md
MD5
build
build/vignette.rds
DESCRIPTION
man
man/checkTokenAPI.Rd man/gar_discovery_api.Rd man/gar_gce_auth.Rd man/gar_auth_js.Rd man/gar_create_api_skeleton.Rd man/split_vector.Rd man/Authentication.Rd man/renderLogin.Rd man/is_legit_token.Rd man/substitute.list.Rd man/replace.kv.Rd man/gar_batch_walk.Rd man/RFC_convert.Rd man/createCode.Rd man/gar_batch.Rd man/parseBatchResponse.Rd man/error.message.Rd man/gar_auto_auth.Rd man/token_exists.Rd man/gar_gadget.Rd man/myMessage.Rd man/loginOutput.Rd man/gar_auth_jsUI.Rd man/gar_create_package.Rd man/googleAuthUI.Rd man/gar_discovery_apis_list.Rd man/gar_js_getToken.Rd man/is_shiny.Rd man/gar_auth_service.Rd man/is.error.Rd man/postwalk.Rd man/retryRequest.Rd man/revokeEventObserver.Rd man/check.Url.Rd man/check_cached_scopes.Rd man/gar_attach_auto_auth.Rd man/gar_shiny_getUrl.Rd man/doBatchRequest.Rd man/gar_token_info.Rd man/applyDataParseFunction.Rd man/with_shiny.Rd man/get_google_token.Rd man/gar_create_api_objects.Rd man/is.NullOb.Rd man/checkGoogleAPIError.Rd man/gar_auth.Rd man/gar_shiny_getAuthUrl.Rd man/makeBatchRequest.Rd man/reactiveAccessToken.Rd man/authReturnCode.Rd man/doHttrRequest.Rd man/gar_shiny_getToken.Rd man/gar_api_generator.Rd man/rmNullObs.Rd man/googleAuth.Rd man/googleAuthR.Rd
LICENSE

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.