Skip to content

Instantly share code, notes, and snippets.

<!ENTITY % payload SYSTEM "file:///etc/issue">
<!ENTITY % intern "<!ENTITY &#37; trick SYSTEM 'file:///etc/issue'>">
@joeldsa
joeldsa / gist:3853374
Created October 8, 2012 16:19
Oauth2 for ruby web apps
require 'uaa'
# the URL of the UAA
UAA_TARGET = "https://uaa.cf102.dev.las01.vcsops.com"
# UAA Client Application Registration info
CLIENT_ID = "app" # the name registered with the UAA for this app
CLIENT_SECRET = "appclientsecret" # the app registration code
SCOPE = "dashboard.user openid" # this app will ask users to delegate authorization for these scopes
REDIR_URI = nil # as registered with the UAA. Specify a value here to override the default of http://host:port/CALLBACK_PATH