Skip to content

Commit

Permalink
Remove CookieComplianceEnabled flag (#4588)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Bommarito committed Aug 23, 2017
1 parent f57f82f commit 4771a58
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 16 deletions.
6 changes: 1 addition & 5 deletions src/NuGetGallery/App_Start/DefaultDependenciesModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -537,11 +537,7 @@ private static void RegisterAuditingServices(ContainerBuilder builder, IAuditing

private static void RegisterCookieComplianceService(ContainerBuilder builder, ConfigurationService configuration, DiagnosticsService diagnostics)
{
CookieComplianceServiceBase service = null;
if (configuration.Current.CookieComplianceEnabled)
{
service = GetAddInServices<ICookieComplianceService>(builder).FirstOrDefault() as CookieComplianceServiceBase;
}
var service = GetAddInServices<ICookieComplianceService>(builder).FirstOrDefault() as CookieComplianceServiceBase;

if (service == null)
{
Expand Down
3 changes: 0 additions & 3 deletions src/NuGetGallery/Configuration/AppConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ public class AppConfiguration : IAppConfiguration
[DefaultValue("")]
public string RedesignBanner { get; set; }

[DefaultValue(false)]
public bool CookieComplianceEnabled { get; set; }

/// <summary>
/// Gets a setting indicating if SSL is required for all operations once logged in.
/// </summary>
Expand Down
5 changes: 0 additions & 5 deletions src/NuGetGallery/Configuration/IAppConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ public interface IAppConfiguration
/// Gets the warning banner text
/// </summary>
string RedesignBanner { get; set; }

/// <summary>
/// Gets a setting if cookie compliance shim should be enabled.
/// </summary>
bool CookieComplianceEnabled { get; set; }

/// <summary>
/// Gets a setting indicating if SSL is required for all operations once logged in.
Expand Down
3 changes: 0 additions & 3 deletions src/NuGetGallery/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@
<add key="Gallery.WarningBanner" value="" />
<!-- redesign banner on the top - leave blank to remove the banner from the site. -->
<add key="Gallery.RedesignBanner" value="" />

<!-- EU cookie banner integration settings -->
<add key="Gallery.CookieComplianceEnabled" value="false" />

<add key="Gallery.FacebookAppId" value="" />
<!-- Set this if you have a Application Insights instrumentation key to use for your gallery deployment -->
Expand Down

0 comments on commit 4771a58

Please sign in to comment.