-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |