Added API key authentication

This commit is contained in:
Mark McDowall 2013-09-20 00:31:02 -07:00
commit 57fdbe6e08
11 changed files with 114 additions and 15 deletions

View file

@ -31,6 +31,7 @@ namespace NzbDrone.Api
container.Resolve<DatabaseTarget>().Register();
container.Resolve<IEnableBasicAuthInNancy>().Register(pipelines);
container.Resolve<IEnableStatelessAuthInNancy>().Register(pipelines);
container.Resolve<IEventAggregator>().PublishEvent(new ApplicationStartedEvent());
ApplicationPipelines.OnError.AddItemToEndOfPipeline(container.Resolve<NzbDroneErrorPipeline>().HandleException);