* Update gitignore * Move csproj * Update project references * Update solutions * Update build scripts * Tests used to share editorconfig with projects in src * Fix broken tests. * Stop copying around .editorconfig merged root one with linting * csharp_style_expression_bodied -> suggestion * Move StyleCop rulesets to matching directories and update shared build properties * Remove legacy build files, update NuGet.cofig and solution files * Restore myget source * Clean up .gitignore * Update .gitignore * Move new test classes to tests after merge * Gitignore + nuget config * Move new test Co-authored-by: Ronald Barendse <ronald@barend.se>
19 lines
626 B
C#
19 lines
626 B
C#
using System;
|
|
using Microsoft.Owin.Extensions;
|
|
using Owin;
|
|
|
|
namespace Umbraco.Tests.TestHelpers.ControllerTesting
|
|
{
|
|
public static class AuthenticateEverythingExtensions
|
|
{
|
|
public static IAppBuilder AuthenticateEverything(this IAppBuilder app)
|
|
{
|
|
if (app == null)
|
|
throw new ArgumentNullException("app");
|
|
app.Use(typeof(AuthenticateEverythingMiddleware), (object)app, (object)new AuthenticateEverythingMiddleware.AuthenticateEverythingAuthenticationOptions());
|
|
app.UseStageMarker(PipelineStage.Authenticate);
|
|
return app;
|
|
}
|
|
}
|
|
}
|