Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing SWT authentication handler #10654

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ public static void AddScriptPolicies(this AuthorizationOptions options)

private static void AddScriptAuthenticationSchemes(this AuthorizationPolicyBuilder builder)
{
builder.AuthenticationSchemes.Add(ArmAuthenticationDefaults.AuthenticationScheme);
builder.AuthenticationSchemes.Add(AuthLevelAuthenticationDefaults.AuthenticationScheme);
builder.AuthenticationSchemes.Add(JwtBearerDefaults.AuthenticationScheme);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public static IServiceCollection AddWebJobsScriptHostRouting(this IServiceCollec
public static IServiceCollection AddWebJobsScriptHostAuthentication(this IServiceCollection services)
{
services.AddAuthentication()
.AddArmToken()
.AddScriptAuthLevel()
.AddScriptJwtBearer();

Expand Down
16 changes: 0 additions & 16 deletions src/WebJobs.Script/Config/FunctionsHostingConfigOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,6 @@ internal bool ShutdownWebhostWorkerChannelsOnHostShutdown
}
}

/// <summary>
/// Gets or sets a value indicating whether SWT tokens should be accepted.
/// </summary>
internal bool SwtAuthenticationEnabled
{
get
{
return GetFeatureAsBooleanOrDefault(ScriptConstants.HostingConfigSwtAuthenticationEnabled, false);
}

set
{
_features[ScriptConstants.HostingConfigSwtAuthenticationEnabled] = value ? "1" : "0";
}
}

/// <summary>
/// Gets or sets a value indicating whether SWT tokens should be sent on outgoing requests.
/// </summary>
Expand Down
1 change: 0 additions & 1 deletion src/WebJobs.Script/ScriptConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ public static class ScriptConstants
public const string HostingConfigDisableLinuxAppServiceDetailedExecutionEvents = "DisableLinuxExecutionDetails";
public const string HostingConfigDisableLinuxAppServiceExecutionEventLogBackoff = "DisableLinuxLogBackoff";
public const string FeatureFlagEnableLegacyDurableVersionCheck = "EnableLegacyDurableVersionCheck";
public const string HostingConfigSwtAuthenticationEnabled = "SwtAuthenticationEnabled";
public const string HostingConfigSwtIssuerEnabled = "SwtIssuerEnabled";
public const string HostingConfigInternalAuthApisAllowList = "InternalAuthApisAllowList";
public const string HostingConfigDotNetInProcDisabled = "DotNetInProcDisabled";
Expand Down
Loading
Loading