Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am bradjlarson on github.
* I am b_rad (https://keybase.io/b_rad) on keybase.
* I have a public key whose fingerprint is 78B3 9840 9A71 F255 B184 E188 C9CB 3E34 0B2D 446A
To claim this, I am signing this object:
Verifying that +b_rad is my Bitcoin username. You can send me #bitcoin here: https://onename.io/b_rad
@bradjlarson
bradjlarson / README.md
Created June 19, 2014 17:41
cm_outcomes

README is empty

@bradjlarson
bradjlarson / README.md
Created June 19, 2014 17:40
cm_outcomes

README is empty

var ClientRouter = Backbone.Router.extend({
routes: {
'404': 'notfound',
'500': 'error',
'auth': 'auth',
'authCallback?oauth_token=:oauth_token&oauth_verifier=:oauth_verifier': 'authCallback',
'': 'defaultRoute'
},
defaultRoute: function() {
var AUTH_URL = "https://api.glitch.com/oauth2/authorize?response_type=code&client_id=000yourclientid000&redirect_uri=http://yoursitehere/oauth/&scope=identity";
var Auth_Router = Backbone.Router.extend({
routes: {
"": "root",
"oauth/?code=:code": "auth"
},
root: function () {},
auth: function (code) {
Meteor.call('authenticate', code, function (error, result) {