public static IAppBuilder UseLowCalorieAuthenticationServer( this IAppBuilder app, LowCalorieAuthenticationServerOptions options) { if (app == null) { throw new ArgumentNullException("app"); } if (options == null) { throw new ArgumentNullException("options"); } app.Use(typeof(LowCalorieAuthenticationServerMiddleware), app, options); return app; }
public static IAppBuilder UseLowCalorieAuthentication( this IAppBuilder app, LowCalorieAuthenticationServerOptions options) { if (app == null) { throw new ArgumentNullException("app"); } if (options == null) { throw new ArgumentNullException("options"); } //This is where you would map options if you had any app.UseLowCalorieTokenAuthentication(new LowCalorieAuthenticationOptions()); app.UseLowCalorieAuthenticationServer(options); return app; }