diff --git a/test/WebSites/FiltersWebSite/AuthorizeBasicMiddleware.cs b/test/WebSites/FiltersWebSite/AuthorizeBasicMiddleware.cs index b4cae02523..ac02e3f7db 100644 --- a/test/WebSites/FiltersWebSite/AuthorizeBasicMiddleware.cs +++ b/test/WebSites/FiltersWebSite/AuthorizeBasicMiddleware.cs @@ -5,7 +5,6 @@ using Microsoft.AspNet.Authentication; using Microsoft.AspNet.Builder; using Microsoft.Framework.WebEncoders; using Microsoft.Framework.Logging; -using Microsoft.Framework.OptionsModel; namespace FiltersWebSite { @@ -13,12 +12,11 @@ namespace FiltersWebSite { public AuthorizeBasicMiddleware( RequestDelegate next, - IOptions options, ILoggerFactory loggerFactory, IUrlEncoder encoder, string authScheme) : - base(next, options, loggerFactory, encoder, - new ConfigureOptions(o => o.AuthenticationScheme = authScheme)) + base(next, new BasicOptions { AuthenticationScheme = authScheme }, loggerFactory, + encoder, configureOptions: null) { } diff --git a/test/WebSites/FiltersWebSite/BasicOptions.cs b/test/WebSites/FiltersWebSite/BasicOptions.cs index 7340f31dda..cf4b042b04 100644 --- a/test/WebSites/FiltersWebSite/BasicOptions.cs +++ b/test/WebSites/FiltersWebSite/BasicOptions.cs @@ -11,10 +11,12 @@ using Microsoft.Framework.OptionsModel; namespace FiltersWebSite { - public class BasicOptions : AuthenticationOptions + public class BasicOptions : AuthenticationOptions, IOptions { public BasicOptions() { } + + public BasicOptions Value { get { return this; } } } } \ No newline at end of file