/// <summary>
        /// Authenticate users using Yahoo
        /// </summary>
        /// <param name="app">The <see cref="IAppBuilder"/> passed to the configuration method</param>
        /// <param name="options">Middleware configuration options</param>
        /// <returns>The updated <see cref="IAppBuilder"/></returns>
        public static IAppBuilder UseYahooAuthentication(this IAppBuilder app, YahooAuthenticationOptions options)
        {
            if (app == null)
            {
                throw new ArgumentNullException("app");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            app.Use(typeof(YahooAuthenticationMiddleware), app, options);
            return(app);
        }
        /// <summary>
        /// Authenticate users using Yahoo
        /// </summary>
        /// <param name="app">The <see cref="IAppBuilder"/> passed to the configuration method</param>
        /// <param name="options">Middleware configuration options</param>
        /// <returns>The updated <see cref="IAppBuilder"/></returns>
        public static IAppBuilder UseYahooAuthentication(this IAppBuilder app, YahooAuthenticationOptions options)
        {
            if (app == null)
            {
                throw new ArgumentNullException("app");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            app.Use(typeof(YahooAuthenticationMiddleware), app, options);
            return app;
        }
 private static void SetupYahooAuth(IAppBuilder app)
 {
     YahooAuthenticationOptions yahooOptions = new YahooAuthenticationOptions()
     {
         ConsumerKey = YahooConsumerKey,
         ConsumerSecret = YahooConsumerSecret
     };
     app.UseYahooAuthentication(yahooOptions);
 }