Skip to content

Commit 5f96fe9

Browse files
committed
Removing IsAuthDisabled dead code
1 parent 326a190 commit 5f96fe9

File tree

5 files changed

+2
-30
lines changed

5 files changed

+2
-30
lines changed

src/WebJobs.Script.WebHost/WebHostSettings.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ public class WebHostSettings
2929
/// </summary>
3030
public string TestDataPath { get; set; }
3131

32-
/// <summary>
33-
/// Gets or sets a value indicating whether authentication/authorization
34-
/// should be disabled. Useful for local debugging or CLI scenarios.
35-
/// </summary>
36-
public bool IsAuthDisabled { get; set; } = false;
37-
3832
internal static WebHostSettings CreateDefault(ScriptSettingsManager settingsManager)
3933
{
4034
WebHostSettings settings = new WebHostSettings

test/WebJobs.Script.Tests.Integration/Controllers/ControllerDisabledAuthScenarioTestsFixture.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

test/WebJobs.Script.Tests.Integration/Controllers/ControllerScenarioTestFixture.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ public class ControllerScenarioTestFixture : IDisposable
1919
private HttpConfiguration _config;
2020

2121
public ControllerScenarioTestFixture()
22-
: this(isAuthDisabled: false)
23-
{
24-
}
25-
26-
public ControllerScenarioTestFixture(bool isAuthDisabled)
2722
{
2823
_config = new HttpConfiguration();
2924
_settingsManager = ScriptSettingsManager.Instance;
@@ -33,8 +28,7 @@ public ControllerScenarioTestFixture(bool isAuthDisabled)
3328
IsSelfHost = true,
3429
ScriptPath = Path.Combine(Environment.CurrentDirectory, @"..\..\..\..\..\sample"),
3530
LogPath = Path.Combine(Path.GetTempPath(), @"Functions"),
36-
SecretsPath = Path.Combine(Path.GetTempPath(), @"FunctionsTests\Secrets"),
37-
IsAuthDisabled = isAuthDisabled
31+
SecretsPath = Path.Combine(Path.GetTempPath(), @"FunctionsTests\Secrets")
3832
};
3933

4034

test/WebJobs.Script.Tests.Integration/WebHostEndToEnd/ProxyEndToEndTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,7 @@ public TestFixture()
262262
IsSelfHost = true,
263263
ScriptPath = Path.Combine(Environment.CurrentDirectory, @"..\..\..\TestScripts\Proxies"),
264264
LogPath = Path.Combine(Path.GetTempPath(), @"ProxyTests\Logs"),
265-
SecretsPath = Path.Combine(Path.GetTempPath(), @"ProxyTests\Secrets"),
266-
IsAuthDisabled = true
265+
SecretsPath = Path.Combine(Path.GetTempPath(), @"ProxyTests\Secrets")
267266
};
268267

269268
_testServer = new TestServer(

test/WebJobs.Script.Tests/Managment/WebFunctionsManagerTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ private static WebHostSettings CreateWebSettings()
8181
return new WebHostSettings
8282
{
8383
ScriptPath = @"x:\root",
84-
IsAuthDisabled = false,
8584
IsSelfHost = false,
8685
LogPath = @"x:\tmp\log",
8786
SecretsPath = @"x:\secrets",

0 commit comments

Comments
 (0)