This file contains hidden or 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
function (req, res, next) { | |
/* Hawk does all the necessaries in this authenticate function. | |
* You pass it a function to look up an ID ( In the MakeAPI I call | |
* them public keys, as they are randomly generated UUIDs | |
*/ | |
hawkModule.Hawk.server.authenticate(req, function (publickey, callback) { | |
/* Create a credentials object, This contains the algorithm that should | |
* be used to calculate the MAC It also contains the public key and will |
This file contains hidden or 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
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Created: 2010/12/05 | |
// Updated: 2018/09/12 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
// |