Skip to content

Instantly share code, notes, and snippets.

Chris Lunsford cllunsford

Block or report user

Report or block cllunsford

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cllunsford
cllunsford / meteor-oauth-client.js
Created May 4, 2012
Oauth using Meteor and Backbone
View meteor-oauth-client.js
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) {
You can’t perform that action at this time.