Skip to content

Commit

Permalink
Removed now-extaneous function
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed Oct 7, 2015
1 parent 0253f14 commit 4399679
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,32 +94,6 @@ exports.load = function load(filename, format) {
return loadObject(builder.ns);
};

/**
* Get a function that a client can use to update metadata with authentication
* information from a Google Auth credential object, which comes from the
* google-auth-library.
* @param {Object} credential The credential object to use
* @return {function(Object, callback)} Metadata updater function
*/
exports.getGoogleAuthDelegate = function getGoogleAuthDelegate(credential) {
/**
* Update a metadata object with authentication information.
* @param {string} authURI The uri to authenticate to
* @param {Object} metadata Metadata object
* @param {function(Error, Object)} callback
*/
return function updateMetadata(authURI, metadata, callback) {
credential.getRequestMetadata(authURI, function(err, header) {
if (err) {
callback(err);
return;
}
metadata.add('authorization', header.Authorization);
callback(null, metadata);
});
};
};

/**
* @see module:src/server.Server
*/
Expand Down

0 comments on commit 4399679

Please sign in to comment.