public static IAppBuilder UseFoursquareAuthentication(this IAppBuilder app, FoursquareAuthenticationOptions options) { if (app == null) { throw new ArgumentNullException("app"); } if (options == null) { throw new ArgumentNullException("options"); } app.Use(typeof(FoursquareAuthenticationMiddleware), app, options); return app; }
private static void SetupFourSquareAuth(IAppBuilder app) { FoursquareAuthenticationOptions fourSquareOptions = new FoursquareAuthenticationOptions() { ClientId = FourSquareClientId, ClientSecret = FourSquareClientSecret }; app.UseFoursquareAuthentication(fourSquareOptions); }