Skip to content

Commit

Permalink
Start work on Minecraft authentication (#1) and Passport strategy (#2)…
Browse files Browse the repository at this point in the history
…, no actual code, just the layout.

Signed-off-by: Skye M <[email protected]>
  • Loading branch information
skyem123 committed Jun 26, 2015
1 parent 3270548 commit 3d7986e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/auth.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// This file is for Minecraft authentication code.

// Returns a random hash suitable for the server hash.
function generateHash() {

}

// Checks if a user has logged in
function verifyUser(userName, serverHash, callback) {

}

// Client requests server for hash
function getHash(callback) {
callback(generateHash())
}
12 changes: 12 additions & 0 deletions lib/stategy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var util = require('util'),
Strategy = require('passport-strategy');

function MCMUCHStrategy(...) {
Strategy.call(this);
}

util.inherits(MCMUCHStrategy, Strategy);

MCMUCHStrategy.prototype.authenticate = function(req, options) {
// TODO: authenticate request
}

0 comments on commit 3d7986e

Please sign in to comment.