protected override void ApplicationStartup(Nancy.TinyIoc.TinyIoCContainer container, Nancy.Bootstrapper.IPipelines pipelines)
 {
     if (_authenticationProvider != null)
     {
         _authenticationProvider.Enable(pipelines);
     }
     pipelines.EnableCors(new CorsConfiguration());
 }