Skip to content

Instantly share code, notes, and snippets.

@FvD
FvD / app.R
Created September 9, 2019 21:28 — forked from calligross/app.R
Shiny Cookie Based Authentication Example, please visit https://calligross.de/post/using-cookie-based-authentication-with-shiny/ for more information.
library(shiny)
library(shinyjs)
if (!dir.exists('www/')) {
dir.create('www')
}
download.file(
url = 'https://raw.githubusercontent.com/js-cookie/js-cookie/master/src/js.cookie.js',
destfile = 'www/js.cookie.js'
var _ = require('underscore');
var http = require('http');
var httpProxy = require('http-proxy');
var https = require('https');
var fs = require('fs');
var opts = require('optimist')
.usage('Test auth proxy.\nUsage: $0 [extPort] [destPort] [destHostName] --ssl')
.describe('ssl', 'Enable SSL on both the client and expect it on the target.')
.demand(0);