Skip to content

Commit ce931ee

Browse files
authored
Removing SWT authentication handler (#10654)
1 parent 28f5961 commit ce931ee

File tree

11 files changed

+52
-441
lines changed

11 files changed

+52
-441
lines changed

src/WebJobs.Script.WebHost/Security/Authentication/Arm/ArmAuthenticationDefaults.cs

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

src/WebJobs.Script.WebHost/Security/Authentication/Arm/ArmAuthenticationExtensions.cs

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

src/WebJobs.Script.WebHost/Security/Authentication/Arm/ArmAuthenticationHandler.cs

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

src/WebJobs.Script.WebHost/Security/Authentication/Arm/ArmAuthenticationOptions.cs

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

src/WebJobs.Script.WebHost/Security/Authorization/Policies/AuthorizationOptionsExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ public static void AddScriptPolicies(this AuthorizationOptions options)
110110

111111
private static void AddScriptAuthenticationSchemes(this AuthorizationPolicyBuilder builder)
112112
{
113-
builder.AuthenticationSchemes.Add(ArmAuthenticationDefaults.AuthenticationScheme);
114113
builder.AuthenticationSchemes.Add(AuthLevelAuthenticationDefaults.AuthenticationScheme);
115114
builder.AuthenticationSchemes.Add(JwtBearerDefaults.AuthenticationScheme);
116115
}

src/WebJobs.Script.WebHost/WebHostServiceCollectionExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public static IServiceCollection AddWebJobsScriptHostRouting(this IServiceCollec
5252
public static IServiceCollection AddWebJobsScriptHostAuthentication(this IServiceCollection services)
5353
{
5454
services.AddAuthentication()
55-
.AddArmToken()
5655
.AddScriptAuthLevel()
5756
.AddScriptJwtBearer();
5857

src/WebJobs.Script/Config/FunctionsHostingConfigOptions.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -63,22 +63,6 @@ internal bool ShutdownWebhostWorkerChannelsOnHostShutdown
6363
}
6464
}
6565

66-
/// <summary>
67-
/// Gets or sets a value indicating whether SWT tokens should be accepted.
68-
/// </summary>
69-
internal bool SwtAuthenticationEnabled
70-
{
71-
get
72-
{
73-
return GetFeatureAsBooleanOrDefault(ScriptConstants.HostingConfigSwtAuthenticationEnabled, false);
74-
}
75-
76-
set
77-
{
78-
_features[ScriptConstants.HostingConfigSwtAuthenticationEnabled] = value ? "1" : "0";
79-
}
80-
}
81-
8266
/// <summary>
8367
/// Gets or sets a value indicating whether SWT tokens should be sent on outgoing requests.
8468
/// </summary>

src/WebJobs.Script/ScriptConstants.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ public static class ScriptConstants
141141
public const string HostingConfigDisableLinuxAppServiceDetailedExecutionEvents = "DisableLinuxExecutionDetails";
142142
public const string HostingConfigDisableLinuxAppServiceExecutionEventLogBackoff = "DisableLinuxLogBackoff";
143143
public const string FeatureFlagEnableLegacyDurableVersionCheck = "EnableLegacyDurableVersionCheck";
144-
public const string HostingConfigSwtAuthenticationEnabled = "SwtAuthenticationEnabled";
145144
public const string HostingConfigSwtIssuerEnabled = "SwtIssuerEnabled";
146145
public const string HostingConfigInternalAuthApisAllowList = "InternalAuthApisAllowList";
147146
public const string HostingConfigDotNetInProcDisabled = "DotNetInProcDisabled";

0 commit comments

Comments
 (0)