/// <summary> /// Authenticate users using Steam /// </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 UseSteamAuthentication(this IAppBuilder app, SteamAuthenticationOptions options) { if (app == null) { throw new ArgumentNullException(nameof(app)); } if (options == null) { throw new ArgumentNullException(nameof(options)); } return app.Use(typeof(SteamAuthenticationMiddleware), app, options); }
/// <summary> /// Authenticate users using Steam /// </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 UseSteamAuthentication(this IAppBuilder app, SteamAuthenticationOptions options) { if (app == null) { throw new ArgumentNullException("app"); } if (options == null) { throw new ArgumentNullException("options"); } return(app.Use(typeof(SteamAuthenticationMiddleware), app, options)); }