lib/framework/middleware.js
function authenticate(ctx) {
  var fn = lookup(ctx.operation, 'middleware', 'authenticate');
  var prefix = describe(ctx);

  if (fn) {
    return fn(ctx);
  } else {
    debug(prefix + 'authenticate middleware disabled (not defined)');
  }
}
function authenticate(ctx) {
  var fn = lookup(ctx.operation, 'middleware', 'authenticate');
  var prefix = describe(ctx);

  if (fn) {
    return fn(ctx);
  } else {
    debug(prefix + 'authenticate middleware disabled (not defined)');
  }
}
function authenticate ( ctx ) { var fn = lookup ( ctx . operation , 'middleware' , 'authenticate' ) ; var prefix = describe ( ctx ) ; if ( fn ) { return fn ( ctx ) ; } else { debug ( prefix + 'authenticate middleware disabled (not defined)' ) ; } }
Authenticate request.
Authenticate request .