public static IAppBuilder SidekickAuthentication(this IAppBuilder app,
            SidekickAuthenticationOptions options)
        {
            if (app == null)
                throw new ArgumentNullException("app");
            if (options == null)
                throw new ArgumentNullException("options");

            app.Use(typeof(SidekickAuthenticationMiddleware), app, options);

            return app;
        }
        public static IAppBuilder SidekickAuthentication(this IAppBuilder app,
                                                         SidekickAuthenticationOptions options)
        {
            if (app == null)
            {
                throw new ArgumentNullException("app");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            app.Use(typeof(SidekickAuthenticationMiddleware), app, options);

            return(app);
        }