public static void UseQQConnectAuthentication(this IAppBuilder app, QQAuthenticationOptions options)
 {
     if (app == null)
     {
         throw new ArgumentNullException("app");
     }
     if (options == null)
     {
         throw new ArgumentNullException("options");
     }
     app.Use(typeof(QQAuthenticationMiddleware), app, options);
 }
        /// <summary>
        /// QQ授权登录
        /// </summary>
        /// <param name="app"></param>
        /// <param name="options"></param>
        /// <returns></returns>
        public static IAppBuilder UseQQAuthentication(this IAppBuilder app,
                                                      QQAuthenticationOptions options)
        {
            if (app == null)
            {
                throw new ArgumentNullException(nameof(app));
            }
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

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

            return(app);
        }