Make a Google Authorisation URL for Shiny
Set this within your login_ui where you need the Google login.
gar_shiny_auth_url( req, state = getOption("googleAuthR.securitycode"), client.id = getOption("googleAuthR.webapp.client_id"), client.secret = getOption("googleAuthR.webapp.client_secret"), scope = getOption("googleAuthR.scopes.selected"), access_type = c("online", "offline"), prompt = c("consent", "select_account", "both", "none") )
req
: a Rook request, do not set as this will be used by Shiny to generate URLstate
: URL stateclient.id
: client.idclient.secret
: client.secretscope
: API scopesaccess_type
: whether to keep the tokenprompt
: Auto-login if user is recognised or always force signinOther pre-load shiny authentication: gar_shiny_auth()
, gar_shiny_login_ui()
, gar_shiny_ui()
, silent_auth()
Useful links