Skip to content

Instantly share code, notes, and snippets.

View carlganz's full-sized avatar

Carl Ganz carlganz

View GitHub Profile
@carlganz
carlganz / app.R
Created October 9, 2017 00:52 — forked from jcheng5/app.R
Using OAuth2 with Shiny
library(shiny)
# WARNING: This sketch does not make proper use of the "state" parameter.
# Doing so usually involves using cookies, which can be done with the
# Rook package but I have not done that here. If you choose to use this
# approach in production, please check the state parameter properly!
APP_URL <- if (interactive()) {
# This might be useful for local development. If not, just hardcode APP_URL
# to the deployed URL that you'll provide a few lines below.