diff --git a/lib/index.js b/lib/index.js index b5d2b99..77c056f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -14,11 +14,14 @@ exports.register = function(plugin, options, next) { // NOTE: needs to be '*' method: '*', path: path, - handler: function(request, reply) { - plugin.log(['debug', 'callback'], JSON.stringify(request.auth)); - - // Run authentication - samlHapi.authenticate(settings)(request, reply); + config: { + auth: false, + handler: function(request, reply) { + plugin.log(['debug', 'callback'], JSON.stringify(request.auth)); + + // Run authentication + samlHapi.authenticate(settings)(request, reply); + } } });