Skip to content

Instantly share code, notes, and snippets.

View ernestguevarra's full-sized avatar

Ernest Guevarra ernestguevarra

View GitHub Profile
@ernestguevarra
ernestguevarra / app.R
Created September 29, 2017 04:55 — 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.